List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:August 22 2005 10:20pm
Subject:Re: Undefined reference to Connection object....
View as plain text  
Josh Bigelow wrote:
> g++ -I/usr/include/mysql -L/usr/include/mysql -L/usr/local/include
> -I/usr/local/include -lmysqlclient box.c -o box

You're failing to link to the MySQL++ library.  Add -lmysqlpp

> #include "connection.h"

You don't need to add that.

 > I know that mysql++.h and connection.h
> are in /usr/local/include, and I cannot figure out why it's doing this
> when these function references are clearly there.

If this were your problem, you'd get a different error.
Thread
Undefined reference to Connection object....Josh Bigelow20 Aug
  • Re: Undefined reference to Connection object....Warren Young23 Aug