On Nov 10, 2009, at 11:13 PM, Keshava Krishna wrote:
> but i got the same errors..
> root@kk-desktop:~/kini# g++ -I/usr/local/include main.cpp
> In file included from /usr/local/include/mysql++/connection.h:38,
> from /usr/local/include/mysql++/mysql++.h:56,
> from main.cpp:1:
> /usr/local/include/mysql++/common.h:124:28: error: mysql_version.h:
> No such
> file or directory
> /usr/local/include/mysql++/common.h:182:20: error: mysql.h: No such
> file or
> directory
This is what I was expecting to see from your first post: missing
mysql.h. It means you either don't have the MySQL C API development
files installed, or you need at least one more -I flag.
Also, if Nick's right and you have two different versions of MySQL++
installed -- I'm guessing 3.0.0 from the Ubuntu repos and 3.0.9 from
my site -- mixing them might cause problems. It shouldn't, but to be
safe, pick one, and uninstall the other. Personally, I recommend
keeping the tarball install, if I'm right that it's the newer one.