stan
02-27-1999, 09:24 PM
Hi,
How should I compile a C program with MySQL calls?
gcc -I/usr/local/mysql/include/ -lmysql myprog.c
The -I is needed to get to <mysql.h>
The library is not placed right I thinks:
%file /usr/lib/mysql
/usr/lib/mysql: broken symbolic link to /usr/local/mysql/lib/mysql
Or should I include a -L option?
Stan
------------------
Stan P. van de Burgt stan@dmo.com (PGP 0x853296C5)
DMO, P.O. box 1248, 3500 BE, Utrecht, the Netherlands
[This message has been edited by stan (edited 02-27-99).]
How should I compile a C program with MySQL calls?
gcc -I/usr/local/mysql/include/ -lmysql myprog.c
The -I is needed to get to <mysql.h>
The library is not placed right I thinks:
%file /usr/lib/mysql
/usr/lib/mysql: broken symbolic link to /usr/local/mysql/lib/mysql
Or should I include a -L option?
Stan
------------------
Stan P. van de Burgt stan@dmo.com (PGP 0x853296C5)
DMO, P.O. box 1248, 3500 BE, Utrecht, the Netherlands
[This message has been edited by stan (edited 02-27-99).]