I'm trying to create a simple C program that accesses MySQL.
I've included <mysql.h> in the source code. The program
compiles fine, but when I try to link it as follows, I get the
following error messages:

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

/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In
function
`my_compress_alloc':
my_compress.o(.text+0x12a): undefined reference to `compress'
collect2: ld returned 1 exit status



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?

Thanks,


Greg





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