List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:November 10 2004 4:47am
Subject:Re: Can't run examples by themselves
View as plain text  
On Tue, Nov 09, 2004 at 11:13:47PM +0000, Dovid Kopel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> I realized I can't compile the examples by themselves...I tried
> compiling simple1.cc and got this:
> 
> munky@lappy ~/examples $ g++ -o simple simple1.cc
> In file included from /usr/local/include/mysql++.h:3,
> ~                 from util.h:4,
> ~                 from simple1.cc:1:
> /usr/local/include/defs.h:6:19: mysql.h: No such file or directory

Check to make sure you don't have a duplicate installed under /usr/local
It should be under /usr/include/mysql++ if you emerged it, and you will
need to use -I/usr/include/mysql++ on your command line.

	g++ -I/usr/include/mysql -I/usr/include/mysql++ -o simple simple1.cc

That's the style of command I use, for the mysql C headers and the mysql++
C++ headers.

- Chris

Thread
Can't run examples by themselvesDovid Kopel10 Nov
  • Re: Can't run examples by themselvesChris Frey10 Nov
    • Re: Can't run examples by themselvesDovid Kopel10 Nov
      • Re: Can't run examples by themselvesChris Frey10 Nov
        • Re: Can't run examples by themselvesBryan W. Headley10 Nov
          • Re: Can't run examples by themselvesDovid Kopel10 Nov
            • Re: Can't run examples by themselvesWarren Young10 Nov
    • Re: Can't run examples by themselvesWarren Young10 Nov