|
From: | Stefan Kristensen |
Subject: | Re: [G++ n00b] Include and lib files |
Date: | Fri, 16 Nov 2007 20:25:28 +0100 |
User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
#include "mysql/mysql.h"This gives: test1.cpp:2:47: mysql/mysql.h: No such file or directory If I use the -I option, it finds the mysql.h file. What's wrong?
Still goes.
After compiling with the -I option, I get: undefined reference to 'mysql_init'. The guide I found refers to mysql.lib which obviously(?) is a Windoze file. In the /lib/mysql folder I see quite a few files. Which one should I include (with the -l option?) to make it work?
Sorry - I asked before checking the link. I guesses mysqlclient would do the trick, and it did... Moving on :-)
Thanks a lot so far. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |