September 5th, 2008, 02:13 PM
Mysql.h: No such file or directory
Linux server, gcc ver 4.1.2, and MySQL ver 14.12 distrib 5.0.22
When I include in my my_prg.c the line "#include <mysql.h>;" I get the compile error: "mysql.h: No such file or directory". my_prg.c compiles and runs without error if I eliminate the "#include <mysql.h>". As far as I can tell, mysql.h does not exist on the server. It is not in /usr/include/.
MySQL is obviously running on the server because I just checked the website that accesses the database often and it works. MySQL Query Browser also works like it should. mysql works at the command prompt via putty.
Any suggestions? Is this the correct forum to look for help for this problem?
September 5th, 2008, 02:50 PM
I've tested with this command:
g++ -o UpdatePHPIPAM UpdatePHPIPAM.c `mysql_config --cflags --libs`
I'm from Peru and I have a bit experience with c++. I hope this helps. good luck guys.
You arrived five years too late. Try arriving on time from now on.