![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a little problem at hand, I am having trouble linking my code. Here is the command I run gcc Linux-i386/aaamain.o ../lib/Linux-i386/aaalib.a ../../neoamcomm/Linux-i386/neoamlib.a ../../util/Linux-i386/utillib.a ../util_lib/Linux-i386/autillib.a ../../AAALib/lib/Linux-i386/libaaa.a -L/usr/lib -L/usr/local/lib -lmysqlpp -lpthread -lnsl -lm -lz -lmysqlclient -lstdc++ -o Linux-i386/aaamain Here are the errors I get, (Long long list, so i cut it short) ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0xfb): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /root/AAADev/AAALib/lib/AAALib.cpp:53: undefined reference to `MysqlConnection::MysqlConnection[in-charge](char const*, char const*, char const*, char const*, bool)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x21b): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/include/c++/3.2.2/bits/stl_bvector.h:133: undefined reference to `SQLQuery::str(SQLQueryParms const&, query_reset)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x236):/usr/include/c++/3.2.2/bits/stl_bvector.h:111: undefined reference to `MysqlConnection::store(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x315): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/include/c++/3.2.2/bits/basic_string.h:187: undefined reference to `MysqlQuery::exec(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x3e4):/usr/include/c++/3.2.2/bits/basic_string.h:187: undefined reference to `MysqlResUse::~MysqlResUse [not-in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x484): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/include/c++/3.2.2/bits/stl_alloc.h:668: undefined reference to `MysqlConnection::~MysqlConnection [in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x564):/usr/include/c++/3.2.2/bits/stl_alloc.h:664: undefined reference to `MysqlQuery::exec(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x663): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/connection1.hh:92: undefined reference to `SQLQuery::str(SQLQueryParms const&, query_reset)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x67e):/usr/local/include/connection1.hh:92: undefined reference to `MysqlConnection::store(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0xb2d): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/field_names1.hh:18: undefined reference to `MysqlFieldNames::init(MysqlResUse const*)' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0xe11): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/row1.hh:279: undefined reference to `MysqlResUse::~MysqlResUse [not-in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0xf5b): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/connection1.hh:54: undefined reference to `MysqlResUse::~MysqlResUse [not-in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x11d4): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/result1.hh:160: undefined reference to `MysqlResUse::~MysqlResUse [not-in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x1310):/usr/local/include/result1.hh:160: undefined reference to `MysqlResUse::~MysqlResUse [not-in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x13b0): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': /usr/local/include/connection2.hh:7: undefined reference to `MysqlConnection::~MysqlConnection [in-charge]()' ../../AAALib/lib/Linux-i386/libaaa.a(AAALib.o)(.text+0x1569): In function `AAA::RegisterRoamingDevice(char*, char*, char*, char*, char*)': I have the libraries in the correct place and the include files in the correct place as well.. What do I do? Thanks Ankur |
#3
| |||
| |||
|
|
Hi, I have a little problem at hand, I am having trouble linking my code. |
|
/usr/local/include/field_names1.hh:18: undefined reference to |
#4
| |||
| |||
|
|
On Thu, Mar 17, 2005 at 10:42:19AM -0600, Ankur G35 Saxena wrote: Hi, I have a little problem at hand, I am having trouble linking my code. [snip] /usr/local/include/field_names1.hh:18: undefined reference to These headers are pretty old. If possible, try removing _all_ old mysql++ versions from your system and installing the latest. - Chris -- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsu...mail (DOT) com |
![]() |
| Thread Tools | |
| Display Modes | |
| |