List:MySQL++« Previous MessageNext Message »
From:Fritiof Hedman Date:April 17 2008 9:45am
Subject:Error while compiling
View as plain text  
Hi!

I'm trying to compile resetdb.cpp, using Code::blocks 8.02, MinGW (The
one that was coming with CB) but I get a lot of errors like:

C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x273)||undefined
reference to `__imp___ZN7mysqlpp19get_library_versionEv'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x2b7)||undefined
reference to `__imp___ZN7mysqlpp19get_library_versionEv'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x44c)||undefined
reference to `__imp___ZN7mysqlpp10ConnectionC1Eb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x499)||undefined
reference to `parse_command_line(int, char**, char const**, char
const**, char const**, char const**, char const*)'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x4a7)||undefined
reference to `_dtest_mode'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x633)||undefined
reference to `mysqlpp::Connection::connect(char const*, char const*,
char const*, char const*, unsigned int)'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x64d)||undefined
reference to `mysqlpp::Connection::~Connection()'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x6ed)||undefined
reference to `mysqlpp::Connection::~Connection()'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x751)||undefined
reference to `__imp___ZN7mysqlpp10Connection5queryEPKc'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x77d)||undefined
reference to `_kpcSampleDatabase'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x7ae)||undefined
reference to `__imp___ZN7mysqlpp10Connection9select_dbERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x8d2)||undefined
reference to `__imp___ZN7mysqlpp5Query4execERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x9b5)||undefined
reference to `__imp___ZN7mysqlpp5Query4execERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xa98)||undefined
reference to `__imp___ZN7mysqlpp5Query4execERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xb7b)||undefined
reference to `__imp___ZN7mysqlpp5Query4execERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xc37)||undefined
reference to `_kpcSampleDatabase'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xc7c)||undefined
reference to `__imp___ZN7mysqlpp10Connection9create_dbERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xcb7)||undefined
reference to `_kpcSampleDatabase'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xce8)||undefined
reference to `__imp___ZN7mysqlpp10Connection9select_dbERKSs'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xe41)||undefined
reference to `__imp___ZNK7mysqlpp10Connection5errorEv'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xec1)||undefined
reference to `mysqlpp::Connection::~Connection()'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0xf9a)||undefined
reference to `__imp___ZN7mysqlpp10Connection5queryEPKc'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x109c)||undefined
reference to `__imp___ZN7mysqlpp5Query5parseEv'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x10bc)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x10e3)||undefined
reference to `__imp___ZN7mysqlpp13SQLQueryParmsixEPKc'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1101)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapteraSERKS0_'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1183)||undefined
reference to `__imp___ZN7mysqlpp13SQLQueryParmsixEPKc'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1195)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapteraSERKNS_9null_typeE'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x11e5)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x120b)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x123b)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1269)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ei'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x129f)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1531)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1557)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1587)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x15b5)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ei'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x15eb)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x187d)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x18a9)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x18d9)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1909)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1937)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ei'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x196d)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1c6d)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1c93)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1cc3)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ed'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1cf1)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1Ei'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1d27)||undefined
reference to `__imp___ZN7mysqlpp14SQLTypeAdapterC1EPKcb'|
C:\C++\mysql++-3.0.2\examples\resetdb.o:resetdb.cpp:(.text+0x1fdc)||undefined
reference to `__imp___ZN7mysqlpp10Connection10count_rowsERKSs'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

Does anyone have a clue what's going on?

Thanks,
Fritiof Hedman
Thread
Error while compilingFritiof Hedman17 Apr
  • Re: Error while compilingWarren Young17 Apr