How To compile MySQL++ programs?
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
Subject
Views
Written By
Posted
How To compile MySQL++ programs?
7726
August 18, 2005 01:57AM
3622
November 21, 2005 01:41AM
3609
November 21, 2005 11:47PM
4063
July 24, 2006 02:44AM
3607
May 21, 2007 07:02PM
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.