Ok, I don't know how many of you guys have ever tried using the C API from
MySQL. I instled the MySQL version from rpm that comes with RH 7.1. I'm
having problems compiling the program. I did and slocate and I found all
the mysql *.so and *.a files in the folder /usr/lib/mysql and all the *.h files
in the /usr/include/mysql folder. So I type in
gcc -I/usr/include/mysql -L/usr/lib/mysql c_test.c -o c_test -lmysql . It
keeps telling me it can't find the -lmysql. What am I doing wrong?
MySQL. I instled the MySQL version from rpm that comes with RH 7.1. I'm
having problems compiling the program. I did and slocate and I found all
the mysql *.so and *.a files in the folder /usr/lib/mysql and all the *.h files
in the /usr/include/mysql folder. So I type in
gcc -I/usr/include/mysql -L/usr/lib/mysql c_test.c -o c_test -lmysql . It
keeps telling me it can't find the -lmysql. What am I doing wrong?