From: Warren Young Date: November 11 2009 7:21am Subject: Re: installing MySql/C++ in ubuntu 9.04 List-Archive: http://lists.mysql.com/plusplus/8760 Message-Id: <4692906F-54A0-414D-A21E-0B7F8A46505B@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 9:44 PM, Keshava Krishna wrote: > Let me be precise, > this is my code > > #include > #include > > int main(int argc, char** argv) > { > > } > > and i have include following runtime search paths > /usr/lib, /usr/local/mysql/lib, /usr/local/lib Change that first #include back to the way you had it in the original post. You're making the compiler look for things like /usr/local/ mysql/lib/usr/local/include/mysql++/mysql++.h with this mess. If you made this change in reaction to my comment about absolute paths, I only meant that in regards to -I flags for pointing the compiler to the MySQL and MySQL++ headers and libraries. Relative paths are exactly what you want in your #includes.