undefined reference to 'mysqlpp::Connection::Connection(bool)'
Posted by: Jitesh Nambiar
Date: March 26, 2011 01:52PM

Trying to write a simple C++ program to read and write from database

#include <mysql++.h>
#include <iostream>

int main(int argc, char** argv){
mysqlpp :: Connection con(false);
return 0;
}

I get the following erro: undefined reference to 'mysqlpp::Connection::Connection(bool)'.

I find the following thread http://forums.mysql.com/read.php?45,119115,142903#msg-142903
which asks to add compile options to solve the problem.
-L/usr/lib/mysql -lmysqlclient -lmysqlpp

Can someone tell me where does this compile option added in eclipse?

Regards
Jitesh



Edited 1 time(s). Last edit at 03/26/2011 03:35PM by Jitesh Nambiar.

Options: ReplyQuote


Subject
Views
Written By
Posted
undefined reference to 'mysqlpp::Connection::Connection(bool)'
1817
March 26, 2011 01:52PM


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.