In the last episode (Jan 25), sam said:
> I am getting the following message when submitting the following:
> 
>     [sam@linux sam]$ make
> 
>     gcc -o listener main.o common.o -L/usr/lib/mysql -lmysqlclient -lm
>     /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 make: *** [listener] Error 1

Add -lz to your link line after -lmysqlclient.  Your system is
apparently one where libraries cannot tell the linker what other
libraries they depend on, so you have to do it yourself.

-- 
        Dan Nelson
        [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

Reply via email to