List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:June 9 1999 8:08pm
Subject:Re: mysql_real_connect problem??
View as plain text  
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/
Thread
mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
  • Re: mysql_real_connect problem??Michael Widenius9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Sasha Pachev9 Jun
Re: mysql_real_connect problem??April Escamilla9 Jun
  • Re: mysql_real_connect problem??Paul DuBois10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla10 Jun
  • Re: mysql_real_connect problem??Paul DuBois10 Jun
  • Re: mysql_real_connect problem??Sasha Pachev10 Jun
Re: mysql_real_connect problem??April Escamilla11 Jun
  • Re: mysql_real_connect problem??Sasha Pachev11 Jun