List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:June 9 1999 3:48pm
Subject:Re: mysql_real_connect problem??
View as plain text  
At 10:37 AM -0500 6/9/99, April Escamilla wrote:
>Paul,
>
>   No, I'm not doing this as root -- I put those pound signs in because I
>didn't copy my prompt, and a # is quicker to type.  :)  But, I did try your
>command line approach and received this error:
>
>april=/u/april [200]:cc -o mysql_connect
>mysql_connect.c -lc -L/usr/local/mysql/lib -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?  Thanks very very much, Paul, for helping me out on
>this problem :)


Hm, maybe the problem is that I'm an idiot.  You're using 3.21.33b, right?
I just looked through the change notes, and mysql_init() wasn't invented
until 3.22.1.  So that's why you don't have it.

It's not clear when mysql_real_connect() came into existence, but my
3.21.33b distribution has it.  Not sure why yours doesn't seem to.  Maybe
your
libmysqlclient.a is really from an older version than 3.21.33b....

I guess I'd try not calling mysql_init() and changing from
mysql_real_connect() to mysql_connect().

--
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