How to fix unresolved external symbol due to MySql Connector C++?

Posted by Chan on Stack Overflow See other posts from Stack Overflow or by Chan
Published on 2010-12-17T11:09:08Z Indexed on 2010/12/26 8:53 UTC
Read the original article Hit count: 402

Filed under:
|

Hi everyone,

I followed this tutorial http://blog.ulf-wendel.de/?p=215#hello. I tried both on Visual C++ 2008 and Visual C++ 2010. Either static or dynamic, the compiler gave me the same exact error messages:

error LNK2001: unresolved external symbol _get_driver_instance

Has anyone experience this issue before?

Update:
+ Additional Dependencies: mysqlcppconn.lib
+ Additional Include Directories: C:\Program Files\MySQL\MySQL Connector C++ 1.0.5\include
+ Additional Libraries Directories: C:\Program Files\MySQL\MySQL Connector C++ 1.0.5\lib\opt

Thanks,
Chan Nguyen

© Stack Overflow or respective owner

Related posts about c++

Related posts about mysql