List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:October 25 2001 1:45pm
Subject:Re: Link error : where is "compress" ?
View as plain text  
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

Link error : where is "compress" ?M. A. Alves25 Oct
  • Re: Link error : where is "compress" ?Gerald Clark25 Oct