After compiling and installing the mysqlcppapi with "./configure
--with-mysql=/usr/local" which went just fine i turned to the examples
version 1.7.4 and did the same i.e configured with the same options and
ran make which resulted in the following output:
[root@babylon5 mysqlcppapi_example-1.7.4]# make
make all-recursive
make[1]: Entering directory `/home/tmb/mysqlcppapi_example-1.7.4'
Making all in src
make[2]: Entering directory `/home/tmb/mysqlcppapi_example-1.7.4/src'
/bin/sh ../libtool --mode=link c++ -g -O2 -o example simple1.o
-L/usr/local/mysql/lib/mysql -lmysqlclient -L/usr/local/mysql/lib/mysql
-lmysqlclient
c++ -g -O2 -o example simple1.o -L/usr/local/mysql/lib/mysql
-lmysqlclient -L/usr/local/mysql/lib/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/tmb/mysqlcppapi_example-1.7.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/tmb/mysqlcppapi_example-1.7.4'
make: *** [all-recursive-am] Error 2
System specs:
Linux Mandrake release 8.0 (Traktopel) for i586
Kernel 2.4.8-34.1mdk on an i686
gcc 2.96
mysql 3.23.45 in /usr/local
mysqlcppapi 1.7.5 with libs in /usr/local/lib
Any help would be appreciated.
Regards Mikael Berglund
|