Hi,

[..]
> produces the following error messages.
>
> /tmp/ccPhnnJk.o: In function `main':
> /tmp/ccPhnnJk.o(.text+0x14): undefined reference to `mysql_init'
> /tmp/ccPhnnJk.o(.text+0x5a): undefined reference to `mysql_real_connect'
> /tmp/ccPhnnJk.o(.text+0x6d): undefined reference to `mysql_query'
> collect2: ld returned 1 exit status
[..]

I would think that the error message is from ld (the linker). So, it's not a
fault in your code per se, but rather the arguments to the linker. Have you
stated to include the mysql library? Using gcc it could be something like:
"-L/usr/local/lib/mysql -lmysqlclient".

--
Aigars

DISCLAIMER:

Internet communications are not secure and therefore Defcom does not accept
legal responsibility for the contents or accuracy of this message. The views
and opinions contained in the message are solely those of the author and do
not necessarily represent those of Defcom unless otherwise specifically
stated.


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