[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with libmyclient.a


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
-I' /usr/include/mysql'
% mysql mysql_config --libs
-L '/usr/lib/mysql' -lmysqlclient -lz -lcrypt -lnsl -lm

You can download pdf format abaout C Api reference 
for complete description at Paul Dubois home page
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup


---------------------------------------------------------------------
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 <suppressed>
To unsubscribe, e-mail <suppressed>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.