List:MySQL++« Previous MessageNext Message »
From:Graham Reitz Date:December 2 2007 7:26pm
Subject:Re: Annoying question from a noob
View as plain text  
It looks like it's not able to find the libmysqlpp.so.

Make sure the linker path with the -L is correct and that the  
libmysqlpp.so is actually present.

On Dec 2, 2007, at 1:09 PM, Michael Sullivan wrote:

> On Sun, 2007-12-02 at 13:41 -0500, William F. Dowling wrote:
>> Use locate to find out where mysql.h is.  Then make sure when you
>> compile that you designate an include path to that directory using
>> -I/path/where/mysql.h/resides
>>
>> Will
>>
>> On Sun, 2007-12-02 at 12:35 -0600, Michael Sullivan wrote:
>>> OK.  I've installed it from source and run ldconfig.  It's
>>> in /usr/local
>>> now.  When I try to build simple1.cpp however:
>>>
>>> michael@camille examples $ g++ simple1.cpp -lz -lmysqlclient_r
>>> -lmysqlpp
>>> -I/usr/local/include/mysql++/ -o simple
>>> In file included from /usr/local/include/mysql++/connection.h:38,
>>>                 from /usr/local/include/mysql++/mysql++.h:56,
>>>                 from util.h:31,
>>>                 from simple1.cpp:28:
>>> /usr/local/include/mysql++/common.h:37:27: error: mysql_version.h:  
>>> No
>>> such file or directory
>>> /usr/local/include/mysql++/common.h:148:19: error: mysql.h: No such
>>> file
>>> or directory
>
> Now I'm down to only one error, and it's my least favourite kind:
>
> michael@camille examples $ g++ simple1.cpp -lz -lmysqlclient_r - 
> lmysqlpp
> -I/usr/local/include/mysql++/ -I/usr/include/mysql -o simple
> /tmp/ccuuBkDx.o: In function `main':
> simple1.cpp:(.text+0xbe): undefined reference to `connect_to_db(int,
> char**, mysqlpp::Connection&, char const*)'
> collect2: ld returned 1 exit status
>
>
>
> -- 
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
>

Thread
Annoying question from a noobMichael Sullivan2 Dec
  • Re: Annoying question from a noobGraham Reitz2 Dec
    • Re: Annoying question from a noobMichael Sullivan2 Dec
      • Re: Annoying question from a noobddneilson2 Dec
      • Re: Annoying question from a noobWilliam F. Dowling2 Dec
        • Re: Annoying question from a noobMichael Sullivan2 Dec
          • Re: Annoying question from a noobGraham Reitz2 Dec
          • Re: Annoying question from a noobWarren Young3 Dec
            • Re: Annoying question from a noobKun Niu3 Dec
              • Re: Annoying question from a noobWarren Young3 Dec