[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: mysql - c api use



> 
> $cc -I/usr/include/mysql -L/usr/lib/mysql myapp.c -o
> myapp -lm -lmysqlclient
> 
> I have included the mysql.h header file on the first
> line of the program using
> #include <mysql.h>

-I doesn't help here .. you are using <> around the header name. You
 can omit the  -I parameter and use #include <mysql/mysql.h> instead.



> 
> The error message on complication is 
> myapp.c:7: mysql.h: No such file or directory
> 

You need to install the MySql devel package for the header files.

regards,
 Sandip

-- 
-------------------------------------
Sandip Bhattacharya 
sandipb @ bigfoot.com
http://www.sandipb.net
-------------------------------------