List:MySQL++« Previous MessageNext Message »
From:Bryan W. Headley Date:November 10 2004 3:24pm
Subject:Re: Can't run examples by themselves
View as plain text  
Chris Frey wrote:

>On Wed, Nov 10, 2004 at 01:28:36PM +0000, Dovid Kopel wrote:
>  
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Chris-
>>
>>I unemerge and remerged there is one instance of the headers. I'm confused.
>>
>>munky@lappy ~/examples $ g++ -I/usr/include/mysql -I/usr/include/mysql++
>>- -o simple simple1.cc
>>/tmp/cc0ZhRu5.o(.text+0x3a): In function `main':
>>: undefined reference to `connect_sample_db(int, char**,
>>mysqlpp::Connection&, char const*)'
>>    
>>
>
>This is getting closer, but whoops, I forgot to recommend you add -lmysqlpp
>in order to link with the right library.
>
>g++ -I/usr/include/mysql -I/usr/include/mysql++ -o simple simple1.cc -lmysqlpp
>
>  
>
That would help. Also tell it to link in the mysqlclient library.
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