[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: mysql - c api use
Hi Sandeep,
Thanks for the tip. I downloaded MySQL-devel-3.23.31
which contains the mysql.h headers and other library
files.
Regards,
Sunil.
--- Sandip Bhattacharya <sandipb@xxxxxxxxxxx> wrote:
> >
> > $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
> -------------------------------------
>
> ------------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/