Re: linking to mysql in C

2011-01-15 Thread walter harms
You are missing the libmysqlclient. I guess the problem is your makefile. make != shell You CFLAGS should have something like this: -L/usr/lib/mysql -lmysqlclient (Actualy it should be LDFLAGS and LOADLIBES) something like $(shell pkg-config --cflags $(packages) ) should work further reading: h

Re: linking to mysql in C

2011-01-14 Thread Luciano Furtado
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What's the output of mysql_config --libs for you? On 11-01-08 00:06, Delan Azabani wrote: > Hi all, > > This is a novice problem I'm having with compiling a C CGI program with > MySQL on my Gentoo box. > > I have a simple source so far: > > * cbook

linking to mysql in C

2011-01-07 Thread Delan Azabani
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, This is a novice problem I'm having with compiling a C CGI program with MySQL on my Gentoo box. I have a simple source so far: * cbook-main.c: http://pastebin.com/vnT6j1z2 * cbook-main.h: http://pastebin.com/4BnyWs27 * Makefile: http://paste