[EMAIL PROTECTED] wrote:
Your message cannot be posted because it appears to be either spam or
simply off topic to our filter. To bypass the filter you must include
one of the following words in your message:
sql,query,queries,smallint
If you just reply to this message, and include the entire t
08:37:28 -0500
To: Untung Rasidin <[EMAIL PROTECTED]>
Subject: Re: Error with libmyclient.a
> Untung Rasidin wrote:
>
> >You can use 'mysql_config' utility to determine the proper flags for
> >compiling and linking.
> >
> Where is the mysql_config utilit
I assume you use gcc, and your object file is :myclient.o
and executable file : is myclient
so try it:
gcc -o myclient myclient.o -L/usr/lib/mysql -lmysqlclient -lz
You can use 'mysql_config' utility to determine the proper flags for
compiling and linking.Example:
% mysql mysql_config --cflags
-
lt;[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 14, 2003 11:41 AM
Subject: Error with libmyclient.a
> Using MySQL 4.0.10-0 on Redhat linux 7.3
>
>
> ./libmysqlclient.a(my_compress.o): In function `my_uncompress':
>
> my_compress.o(.text+0xaa): un
> ./libmysqlclient.a(my_compress.o): In function `my_uncompress':
>
> my_compress.o(.text+0xaa): undefined reference to `uncompress'
>
> ./libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
>
> my_compress.o(.text+0x13c): undefined reference to `compress'
>
> collect2: ld retur
Using MySQL 4.0.10-0 on Redhat linux 7.3
./libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0xaa): undefined reference to `uncompress'
./libmysqlclient.a(my_compress.o): In function `my_compress_alloc':
my_compress.o(.text+0x13c): undefined reference to `compre