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