MySQL Forums
Forum List  »  Connector/C++

unresolved symbol error MySQL_Driver*
Posted by: Dean Salvadore
Date: February 09, 2014 11:58PM

Hello;
The second statement causes the error.
I tried all the example codes that are on this site but get the same link error.
If I comment out the second line the program compiles just fine.
Does anyone know what I can do to fix this?
Thank you;
Dean

sql::Driver *driver;
driver = mysql::get_mysql_driver_instance();

LNK2001: unresolved external symbol "class sql::mysql::MySQL_Driver * __cdecl sql::mysql::get_driver_instance(void)" (?get_driver_instance@mysql@sql@@YAPAVMySQL_Driver@12@X

Tried the examples code and got the same link error.
I am using Visual Studio 2010 Professional and intellisense picks up the members of the classes just fine. There are no errors in the code but the get_driver_instance(); will not link, I wonder if this is a bug?



Edited 1 time(s). Last edit at 02/10/2014 04:15PM by Dean Salvadore.

Options: ReplyQuote


Subject
Views
Written By
Posted
unresolved symbol error MySQL_Driver*
4170
February 09, 2014 11:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.