List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:November 11 2009 7:21am
Subject:Re: installing MySql/C++ in ubuntu 9.04
View as plain text  
On Nov 10, 2009, at 9:44 PM, Keshava Krishna wrote:

> Let me be precise,
> this is my code
>
> #include </usr/local/include/mysql++/mysql++.h>
> #include <iostream>
>
> 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.
Thread
installing MySql/C++ in ubuntu 9.04Keshava Krishna7 Nov
  • Re: installing MySql/C++ in ubuntu 9.04Warren Young9 Nov
    • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna10 Nov
      • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
        • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
          • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
            • Re: installing MySql/C++ in ubuntu 9.04Nick Hastings11 Nov
              • Re: installing MySql/C++ in ubuntu 9.04Keshava Krishna11 Nov
                • Re: installing MySql/C++ in ubuntu 9.04Nick Hastings11 Nov
                • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
            • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov
          • Re: installing MySql/C++ in ubuntu 9.04Warren Young11 Nov