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
-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
-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