Hi,
Check that you have zlib installed and then just add -lz to the libraries
you will be linking with.
Regards
Jorge
MySQL Development Team
__ ___ ____ __ __
/ |/ /_ __/ __/ __ \/ / Jorge del Conde <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, http://www.mysql.com/
/_/ /_/\_, /___/\___\_\____/ Mexico City, Mexico
<___/
----- Original Message -----
From: "Dave Juntgen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 26, 2001 3:18 PM
Subject: Unable to like libmysqlclient statically
Hello everyone..
I am trying to compile a CGI program written in C statically and I keep
getting this one error. I am using MySQL version 3.23.31, the compiler
error below shows that it is libmysqlclient.a that is having problems.
Can anyone help?
-Lgd -lgd -lcrypt -I/usr/local/mysql/include/mysql -L/usr/local/mysql/lib/my
sql -lmysqlclient
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x99): undefined reference to `uncompress'
/usr/local/mysql/lib/mysql/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x128): undefined reference to `compress'
collect2: ld returned 1 exit status
make[1]: *** [webchart.cgi] Error 1
make[1]: Leaving directory `/usr/local/prj/working/djuntgen/webchart_dev'
make: *** [all] Error 2
Thanks for your help..
--Dave J.
---------------
Dave W. Juntgen [EMAIL PROTECTED]
Medical Informatics Engineering, Inc. http://www.mieweb.com/
4101 W. Jefferson Blvd. Phone: 219-459-6270
Fort Wayne, IN 46804 Fax: 219-459-6271
---------------------------------------------------------------------
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