Hi.

On Wed, Aug 08, 2001 at 08:01:43PM -0500, [EMAIL PROTECTED] wrote:
[...]
> $ gcc -o cl2 cl2.o -L/usr/local/mysql/lib -lmysqlclient
> 
> /usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In
> function
> `my_uncompress':
> my_compress.o(.text+0x9a): undefined reference to `uncompress'
> 
> I've got MySQL version 3.23.40. I'm running Mandrake Linux
> 7.0.
> 
> Can anyone tell me what I need to do to take care of this
> problem?

Just add -lz (a compression library) to your gcc call:

gcc -o cl2 cl2.o -L/usr/local/mysql/lib -lmysqlclient -lz

The lib in question comes with the packet zlib-devel. So you might
need to install it, if it isn't already.

Bye,

        Philemon.


---------------------------------------------------------------------
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

Reply via email to