At 10:37 AM -0500 6/9/99, April Escamilla wrote:
> 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 :cc -o mysql_connect
>mysql_connect.c -lc -L/usr/local/mysql/lib -lmysqlclient
>undefined first referenced
> symbol in file
>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
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/