List:MySQL++« Previous MessageNext Message »
From:Amit k. Saha Date:July 22 2008 1:43pm
Subject:Re: Built MySQL++ on Linux, now what?
View as plain text  
On Tue, Jul 22, 2008 at 6:54 PM, Warren Young <mysqlpp@stripped> wrote:
> On Jul 22, 2008, at 6:36 AM, Amit k. Saha wrote:
>
>> On Mon, Jul 21, 2008 at 9:00 PM, Warren Young <mysqlpp@stripped> wrote:
>>>
>>> Amit k. Saha wrote:
>>>>
>>>> `parse_command_line(int, char**, char const**, char const**, char
>>>> const**, char const**, char const*)'
>>>
>>> Once again, the answer's in the mail list archives.
>>
>> At best what I found was (or otherwise)- README-examples.txt which
>> doesn't point me to any reason for getting this error. Am I missing
>> linking to some library?
>
> Most of the examples are built against a convenience library which does
> contain this function.  This library is not intended to be used by
> third-party code, nor are the examples intended to be built separately from
> the library.  When you say "make" to build the library, the examples also
> got built.
>
> If you're trying to learn to build your own programs that use MySQL++, I
> would suggest building them from scratch rather than try to build
> simple1.cpp separately.

I am looking at the page :
http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#simple
and have copied the code given in simple example into a file:
tut-1.cpp and after removed the 'parse_command_line' function and the
headers, have compiled it using:

$ g++ -I /home/as227057/mysql-linux/include/mysql -I
/home/as227057/mysqlpp-install/include/mysql++ -L
/home/as227057/mysqlpp-install/lib/ -L
/home/as227057/mysql-linux/lib/mysql tut-1.cpp -lmysqlpp -lmysqlclient

Now, when I execute it:

"error while loading shared libraries: libmysqlpp.so.3: cannot open
shared object file: No such file or directory"

archives at http://lists.mysql.com/plusplus/7687 suggest me to look up
README-examples.txt and so i tried running it using 'exrun' (though
irrelevant); results are same.

-- 
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
Skype: amitkumarsaha
Thread
Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
  • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
    • Re: Built MySQL++ on Linux, now what?Amit k. Saha21 Jul
      • Re: Built MySQL++ on Linux, now what?Warren Young21 Jul
        • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
          • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
            • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
              • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                  • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                    • Re: Built MySQL++ on Linux, now what?Amit k. Saha22 Jul
                      • Re: Built MySQL++ on Linux, now what?Warren Young22 Jul
                        • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul
                          • Re: Built MySQL++ on Linux, now what?Warren Young23 Jul
                            • Re: Built MySQL++ on Linux, now what?Amit k. Saha23 Jul