Anyone,

I am recently new to mysql, although a have a few years experience in c
programming. I am attempting to build a simple 'connect to database' c-api
prog
on mandrake 7.2.

Using:

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.

Therefore my questions are:

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.

Many thanks for any help,


Mike Clemson
[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