From: Warren Young Date: November 11 2009 7:18am Subject: Re: installing MySql/C++ in ubuntu 9.04 List-Archive: http://lists.mysql.com/plusplus/8759 Message-Id: <072925CC-F0C5-4B74-94BD-E1B65FD225ED@etr-usa.com> MIME-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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.