From: Cipher9 <ci...@su...> - 2002-05-01 11:35:26
|
Hi, I downloaden the mysqlcppapi, and installed it. That went all jst fine. Now I'm trying to make the example, but I'm getting the following errors. make all-recursive make[1]: Entering directory `/home/schepkew/Tools/mysqlcppapi_example-1.7.4' Making all in src make[2]: Entering directory `/home/schepkew/Tools/mysqlcppapi_example-1.7.4/src' /bin/sh ../libtool --mode=link c++ -g -O2 -o example simple1.o -L/usr/include/mysql -lmysqlclient -L/usr/include/mysql -lmysqlclient c++ -g -O2 -o example simple1.o -L/usr/include/mysql -lmysqlclient -L/usr/include/mysql -lmysqlclient simple1.o: In function `__default_alloc_template<true, 0>::_S_chunk_alloc(unsigned int, int &)': /usr/include/g++-3/stl_alloc.h:466: undefined reference to `mysqlcppapi::Connection::Connection(void)' /usr/include/g++-3/stl_alloc.h:467: undefined reference to `mysqlcppapi::Connection::connect(void)' /usr/include/g++-3/stl_alloc.h:490: undefined reference to `mysqlcppapi::Connection::select_database(basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &)' /usr/include/g++-3/stl_alloc.h:518: undefined reference to `mysqlcppapi::Connection::create_Query(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Query::store(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Query::preview(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Result_Store::size(void) const' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Row virtual table' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Row virtual table' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Row::operator[](basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> > const &) const' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Row::~Row(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Result_Store::~Result_Store(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Query::~Query(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Connection::~Connection(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Row::~Row(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Result_Store::~Result_Store(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Query::~Query(void)' /usr/include/g++-3/stl_alloc.h:505: undefined reference to `mysqlcppapi::Connection::~Connection(void)' /usr/include/g++-3/stl_alloc.h:157: undefined reference to `mysqlcppapi::ex_BadQuery type_info function' /usr/include/g++-3/stl_alloc.h:158: undefined reference to `mysqlcppapi::ex_BadConversion type_info function' collect2: ld returned 1 exit status make[2]: *** [example] Error 1 make[2]: Leaving directory `/home/schepkew/Tools/mysqlcppapi_example-1.7.4/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/schepkew/Tools/mysqlcppapi_example-1.7.4' make: *** [all-recursive-am] Error 2 I followed the installation instructions in the README and INSTALL files, but I can't seem To find the prob. Got any suggestions? Thanx a lot Wim |