MySQL Forums
Forum List  »  Connector/C++

How To compile MySQL++ programs?
Posted by: Ali Majdzadeh Kohbanani
Date: August 18, 2005 01:57AM

Hello All
I use the following command to compile a MySQL++ program (simple1.cpp in MySQL++ examples directory)
$g++ -o Test MyTest -L/usr/local/lib/mysql++ -lmysqlpp -L/usr/lib/mysql -lmysqlclient -I/usr/local/include/mysql++
-I/usr/inlcude/mysql
But I get the following error:

undefined reference to `connect_to_db(int, char**, mysqlpp::Connection&, char const*)'

Can anyone help?

Regards

Options: ReplyQuote


Subject
Views
Written By
Posted
How To compile MySQL++ programs?
7050
August 18, 2005 01:57AM
3307
November 21, 2005 01:41AM
3296
November 21, 2005 11:47PM


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.