List:MySQL++« Previous MessageNext Message »
From:Steven Van Ingelgem Date:April 11 2008 2:10pm
Subject:Linking failures with MySQL++ 3.0.1
View as plain text  
System: Debian


Hi,


I have "some" linking failures with my program linking to libmysql++ 3.0.1
(freshly compiled).
Some of them are:
undefined reference to `mysqlpp::Connection::query()'
undefined reference to `mysqlpp::Row::at(unsigned int) const'
undefined reference to `mysqlpp::Connection::query()'
 etc ...

The weird thing is, is that it doesn't complain at compile time (and
checking the headers that's normal because those functions are defined).

But why would it complain at linking time only? What am I doing wrong?

My build line is:
/usr/bin/c++      -fPIC "CMakeFiles/dataparser.dir/HelpFunctions.o"
"CMakeFiles/dataparser.dir/InterpretRecord.o"
"CMakeFiles/dataparser.dir/LifeCycle.o"
"CMakeFiles/dataparser.dir/LoadAbgleichTab.o"
"CMakeFiles/dataparser.dir/main.o" "CMakeFiles/dataparser.dir/stlini.o"   -o
bin/dataparser -rdynamic -lmysqlpp


Compilation against 2.x went fine.


Greetings,
Steven

Thread
Linking failures with MySQL++ 3.0.1Steven Van Ingelgem11 Apr
  • Re: Linking failures with MySQL++ 3.0.1Warren Young11 Apr
    • Re: Linking failures with MySQL++ 3.0.1Steven Van Ingelgem11 Apr