On Sun, Aug 19, 2001 at 10:52:00AM +0100, Mike Clemson wrote:
> 
> gcc
> filename.c -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient
> 
> and get the error:
> 
> /usr/local/mysql/lib/libmysqlclient.a (my_compress.o): In function
> 'my_compress':
> my_compress.o (.text+0x9a): undefined reference to `uncompress`
> /usr/local/mysql/lib/libmysqlclient.a (my_compress.o): In function
> `my_compress_alloc`
> undefined reference to compress
> 
> collect2: ld returned 1 exit status.
> 
> ...
> having downloaded the source it seems to be referring to c function compress
> in my_compress.c
> There is reference to header zlib.h within this source but I do not appear
> to have this file.
> 
> 1. Am I missing a standard c library / header files to do with zlib.h and if
> so could this
> be to do with version of Linux I am running.
> 
> 2. Is this a mysql problem, missing files , incorrect build params etc.

On Suse I show:

(0) infidel keeling /home/keeling_ rpm -qf /usr/include/zlib.h
libz-1.1.3-284

Perhaps you missed installing some C/C++ development libraries?


-- 
 Any technology distinguishable from magic is insufficiently advanced.
     TopQuark Software & Serv.  Contract programmer, server bum.
     [EMAIL PROTECTED]        Give up Spammers; I use procmail.


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