Hello Eric,
Ofcourse that my file has such a thing. Otherwise how can it recognizes the
MYSQL data type ?
I have a line like this
MYSQL mysql;
But the problem appear at linking time so I do not think that the compilation
passes without to know where to find the definitions for all the code that it
encounters in my file.
I guess that is something with mysql shared libraries ....!!
Regards,
Nicu
Eric Fitzgerald wrote:
> 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