![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello all, I am trying to add mysql++ to an already existing apache module. I added the necessary includes in the makefile (-I/usr/local/include/mysql++ -I/usr/include/mysql -L/usr/local/include/mysql++ -lmysqlpp) and also added a "#include "mysql++.h"" to the file that is using the mysql++.h code. It compiles fine, but when I try to run it, I get this runtime error: $ run cannot load /usr/lib/libmymodule.so into server: /usr/lib/mymodule.so: undefined symbol: _ZN7mysqlpp10Connection7connectEPKcS2_S2_S2_jcjS2_ j This is obviously a linking problem. The weird thing is, that I can declare a Connection variable like so and it does not crash at runtime: mysql::Connection& con; But when I try to call a function from the Connection class, like so: con.connect( ... );\ I get the "cannot load" error as stated above.. I believe it has something to do with how I set up my Makefile.am. But I am new at Makefiles and I don't see my error. Help?? ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |