From: Hyper 4. <hy...@ho...> - 2002-09-06 14:01:57
|
Hey, after a day hard working, we managed to get mysqlcppapi compiled+installed! while trying to compile simple1.cc in the examples dir, we encountered the following problem though: /* start code sample */ bash-2.03$ make simple1 /bin/sh ../libtool --mode=link g++ -g -O2 -o simple1 simple1.o ../mysqlcppapi/libmysqlcppapi.la -L/usr/local/mysql/lib -lmysqlclient g++ -g -O2 -o .libs/simple1 simple1.o ../mysqlcppapi/.libs/libmysqlcppapi.so -L/usr/local/mysql/lib -lmysqlclient -L/usr/local/mysql/lib -lmysqlclient -Wl,--rpath -Wl,/export/home/p01/johan/sql/lib /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `connect2': libmysql.o(.text+0x1c): undefined reference to `connect' libmysql.o(.text+0x58): undefined reference to `connect' libmysql.o(.text+0x160): undefined reference to `getsockopt' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_once_init': libmysql.o(.text+0xd44): undefined reference to `getservbyname' /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): In function `mysql_real_connect': libmysql.o(.text+0xf7c): undefined reference to `socket' libmysql.o(.text+0x1064): undefined reference to `socket' libmysql.o(.text+0x10cc): undefined reference to `inet_addr' libmysql.o(.text+0x10e8): undefined reference to `gethostbyname' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_fastsend': violite.o(.text+0x188): undefined reference to `setsockopt' violite.o(.text+0x1b4): undefined reference to `setsockopt' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_keepalive': violite.o(.text+0x210): undefined reference to `setsockopt' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_close': violite.o(.text+0x264): undefined reference to `shutdown' /usr/local/mysql/lib/libmysqlclient.a(violite.o): In function `vio_peer_addr': violite.o(.text+0x31c): undefined reference to `getpeername' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress': my_compress.o(.text+0x9c): undefined reference to `uncompress' /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': my_compress.o(.text+0x12c): undefined reference to `compress' /usr/local/mysql/lib/libmysqlclient.a(my_net.o): In function `my_inet_ntoa': my_net.o(.text+0xc): undefined reference to `inet_ntoa' collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `simple1' /* end code sample */ Help would be greatly appreciated! grtz, Kristof _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |