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

Reply via email to