Re: Can't link with C API

2002-09-08 Thread Ben Goodwin
> That path isn't where mysql is installed. I checked the paths; my makefile > has the correct path. CC can find the header files, and the linker can find > the lib (using truss I can see the linker open the file). > > I'm not sure where the --prefix cam frome. Is that a compile-time option? > I

Re: Can't link with C API

2002-09-08 Thread Steve Cogorno
rm said: > Steve, > > in this line: > MYSQLLIBS = -L /work/doctools/mysql-3.23.52/lib -lmysqlclient > > Try eliminating the space between -L and /work/ > that format always works for me using gcc. > > Other than that, I don't see anything that looks wrong. Thanks for the suggestion.

Re: Can't link with C API

2002-09-08 Thread Steve Cogorno
Ben Goodwin said: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Based on the prefix for your MySQL installation (--prefix=/usr/local/mysql > '), you're not using the right paths. You need to set the -I to > be where your mysql.h file is, and the -L to be where your > libmysqlclient.so

Re: Can't link with C API

2002-09-07 Thread Ben Goodwin
Based on the prefix for your MySQL installation (--prefix=/usr/local/mysql '), you're not using the right paths. You need to set the -I to be where your mysql.h file is, and the -L to be where your libmysqlclient.so (or .a if compiling static) file is. I'd recommend trying the following values