Re: Undefined Reference when Linking with C API

2001-08-08 Thread Gregory A Greenman
Benjamin Pflugmann wrote: > Hi. > > On Wed, Aug 08, 2001 at 08:01:43PM -0500, [EMAIL PROTECTED] wrote: > [...] > > $ gcc -o cl2 cl2.o -L/usr/local/mysql/lib -lmysqlclient > > > > Can anyone tell me what I need to do to take care of this > > problem? > > Just add -lz (a compression library) to you

Re: Undefined Reference when Linking with C API

2001-08-08 Thread Benjamin Pflugmann
Hi. On Wed, Aug 08, 2001 at 08:01:43PM -0500, [EMAIL PROTECTED] wrote: [...] > $ 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' > >

Undefined Reference when Linking with C API

2001-08-08 Thread Gregory A Greenman
I'm trying to create a simple C program that accesses MySQL. I've included 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_co