Does your Bug_Report.c have an #include line for the mysql headers?
----- Original Message ----- 
From: "Nicu Popovici" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 9:54 AM
Subject: Compilation problems.


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


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