Isn't it nice to find the answers to questions right after asking them and before anyone else can answer
some link off google: "It appears that what's happened here is that libmysqlclient wants to use the functions compress and uncompress, which at a guess are the ones in libz (the GNU zip compression library). Presumably MySQL now allows communication between client and server to be compressed on the fly." so using -lz as a flag on linking process is the answer - John On Mon, 12 Aug 2002, John Francis wrote: > hi, > i am writting a c program to connect to a mysql db and execute a bunch > of select and update statements. When I try to compile the source it works > properly but during linking i get this error: > > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_uncompress': > my_compress.o(.text+0xaa): undefined reference to `uncompress' > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_compress_alloc': > my_compress.o(.text+0x13c): undefined reference to `compress' > collect2: ld returned 1 exit status > gmake: *** [Rtunnel_server] Error 1 > > > does anyone know what to here? > - John > > > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php