At 10:17 AM -0500 6/9/99, April Escamilla wrote:
>Yes, I do have libmysqlclient.a. Its full path is /usr/local/mysql/lib.
Then your link command should be:
#cc -o mysql_connect mysqlconnect.c -lc -L/usr/local/mysql/lib -lmysqlclient
By the way, I see your prompt apparently is "#" -- you're not *really*
doing all this as root, are you?
>
>
>-----Original Message-----
>From: Paul DuBois <paul@stripped>
>To: April Escamilla <aprile@stripped>
>Cc: mysql@stripped <mysql@stripped>
>Date: Wednesday, June 09, 1999 10:13 AM
>Subject: Re: mysql_real_connect problem??
>
>
>>>Paul,
>>>
>>> Thanks very much for your quick responses and suggestions. I went
>ahead
>>>and tried the combination you suggested -- I deleted the db argument, and
>>>tried to compile by specifying -lmysqlclient instead of -lmysql. Here's
>>>what I got back
>>>
>>># cc -o mysql_connect mysql_connect.c -lc -lmysqlclient
>>>undefined first referenced
>>> symbol in file
>>>mysql_init mysql_connect.o
>>>mysql_real_connect mysql_connect.o
>>>i386ld fatal: Symbol referencing errors. No output written to
>mysql_connect
>>>
>>>
>>>#cc -o mysql_connect mysqlconnect.c -lc -L/u/april/mysql -lmysqlclient
>>><
>>>undefined first referenced
>>> symbol in file
>>>mysql_init mysql_connect.o
>>>mysql_real_connect mysql_connect.o
>>>i386ld fatal: Symbol referencing errors. No output written to
>mysql_connect
>>>
>>>
>>> Any thoughts on this, Paul, or anyone else?
>>
>>You need to tell us whether or not you do have a libmysqlclient.a on
>>your machine. Since you appear to have mysql.h, I'm guessing you
>>do. But what directory is it in?
>>
>>--
>>Paul DuBois, paul@stripped
>>Northern League Chronicles: http://www.snake.net/nl/
>>
--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/