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
gerald_clark@stripped