At 2:21 PM -0500 6/9/99, April Escamilla wrote:
>>Remove -ls from the above link line...
> i tried that -- similar problems ensue...
>april=/u/april :cc -o mysql_connect
>mysql_connect.c -L/u/april/mysql -lmysql
>i386ld mysql_connect.o: can't find library libmysql.a
>april=/u/april :t.c -L/u/april/mysql -lmysqlclient
>undefined first referenced
> symbol in file
>i386ld fatal: Symbol referencing errors. No output written to mysql_connect
> any thoughts ?
You seem to be generating cc commands at random. The library
is -lmysqlclient, not -lmysql. It's location is -L/usr/local/mysql/lib,
not -L/u/april/mysql (at least, that's where it was in a previous
message). You can't just mix and match these.
Try these commands:
strings /usr/local/mysql/lib/libmysqlclient.a | grep '3\.2'
What number is printed?
nm /usr/local/mysql/lib/libmysqlclient.a | grep mysql_real_connect
Is any output produced?
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/