Hello Gurus,

I am trying to write a C client for a mysql server and I compile the
example with the following line
 gcc -g Bug_Report.c -o test.o
-I/usr/include/mysql -L/usr/lib/mysql
-lmysqlclient -lnsl -lsocket

but I get the following  linking errors

/home/nicu/QA/Bug_Report.c:7: undefined reference to `mysql_init'
/home/nicu/QA/Bug_Report.c:8: undefined reference to `mysql_real_connect'

Can anyone point me in the right direction.

Thank you,
Nicu



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