Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

MySQL and C++

Name: Anonymous 2010-05-10 20:13

I've been trying to follow the tutorial on the MySQL Connector C++ documentation. However, I constantly get a linker error:

1>driver.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class sql::mysql::MySQL_Driver * __cdecl sql::mysql::get_mysql_driver_instance(void)" (__imp_?get_mysql_driver_instance@mysql@sql@@YAPAVMySQL_Driver@12@XZ) referenced in function _main
1>TestProject2.exe : fatal error LNK1120: 1 unresolved externals

I'm fairly new to C++ and basically everything I find says "Figure it out.", which makes it about as fun as smashing my face into a brick wall. Thanks guys.

Name: Anonymous 2010-05-10 21:33

>>1
You have not one, not two, but THREE problems:
1. You are using MySQL
2. You are using C++
3. You are using Visual C++, which does not support C99

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List