It is in libz. Add "-lz" to your compile/link line. M. A. Alves wrote:
> Hello. > > I am linking the mysqlclient library (libmysqlclient.a) to my client > program as indicated in the MySQL Manual section 23.1, and I am getting > the following linker error messages: > > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_compress_alloc': > my_compress.o(.text+0xbb): undefined reference to `compress' > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function > `my_uncompress': > my_compress.o(.text+0x12a): undefined reference to `uncompress' > > What am I missing? > > Isn't there a way to find out what library has a given item? > > Thanks a lot, -- Gerald L. Clark [EMAIL PROTECTED] --------------------------------------------------------------------- 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