PDA

View Full Version : Mysql++ API


Socraties
01-04-2003, 10:20 AM
Ok, I am having a problem using the mysql++ api. I am compiling with Microsoft VC++ 6.0. I have included the appropriate files, but I cannot seem to get the program to compile. I get a link error. I am using the syntax to open the connection as:

Connection(db,host,user,pass);

This should be all that is required to get the connection according to the documentation. I am getting the following errors upon link time:

ChyJournalDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::~MysqlConnection(void)" (??1MysqlConnection@@QAE@XZ)
ChyJournalDlg.obj : error LNK2001: unresolved external symbol "public: __thiscall MysqlConnection::MysqlConnection(char const *,char const *,char const *,char const *,bool)" (??0MysqlConnection@@QAE@PBD000_N@Z)
Debug/ChyJournal.exe : fatal error LNK1120: 2 unresolved externals

According to the wonderful MSDN this is a conflict in some kind of filename issue. I have looked and cannot see any particular indifference.

If anyone has used this to connect to a mysql database your help would be greatly apperciated. I guess the actual question here is, how do i create a connection to the mysql database using the mysqll++ api.
Thanks