At 2:21 PM -0500 6/9/99, April Escamilla wrote:
>>Remove -ls from the above link line...
>
>Monty,
> i tried that -- similar problems ensue...
>
>april=/u/april [260]: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 [262]:t.c -L/u/april/mysql -lmysqlclient
><
>undefined first referenced
> symbol in file
>mysql_real_connect mysql_connect.o
>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/