List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:June 9 1999 2:19pm
Subject:Re: mysql_real_connect problem??
View as plain text  
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 ?
> thanks,
> april
> 

Looks like we are progressing, though, got rid of some errors. Lets do
some tests:

cat > find_real_connect
#!/bin/sh
nm $1 | grep mysql_real_connect
^D

If you prefer other ways of creating small files to cat ^D, feel free to
do so -:)

chmod +x find_read_connect

./find_real_connect /u/april/mysql/libmysqlclient.a 

find / -name libmysqlclient.a -print -exec ./find_real_connect {} \;
2>/dev/null

That will show you where the right version of the library is, and if you
have one at all. 

-- 
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
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