Re: Compiling mysql++ with mingw
Posted by: Michael Hammelmann
Date: June 21, 2006 12:14PM

I have an identical problem.
The examples couldnt be compiled unter Windows XP SP2 / mingw with same linking errors


Here is an example Code

mysqlpp::Connection DBCon = new mysqlpp::Connection();
ci = DBCon.client_info();
try {
DBCon.connect(database,host,dbuser,dbpasswd);
}
catch(const mysqlpp::Exception& er) {
error=DBCon.error();
cerr << er.what() << endl;
}
mysqlpp::Query CategoriesQuery = DBCon.query();

The DBCon Object works fine and dont throw any exception. Connect seems to be oki ( debug mode seems to be oki too ) but

mysqlpp::Query CategoriesQuery = DBCon.query();

create an linking error

I:/wxWidgets-2.6.3/include/wx/object.h:(.text$_ZN7mysqlpp5QueryD1Ev[mysqlpp::Query::~Query()]+0x43): variable 'vtable for mysqlpp::Query' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.

Any Ideas ? Or maybe Bug in mysql++ 2.x for mingw compiler on windows ?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Compiling mysql++ with mingw
509
June 21, 2006 12:14PM


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.