List:MySQL++« Previous MessageNext Message »
From:Daniel Date:October 23 2007 6:06pm
Subject:Re: MySQL++ and Gentoo
View as plain text  
On 10/23/07, Michael Hanselmann <mysql@stripped> wrote:
> On Mon, Oct 22, 2007 at 04:48:10PM -0600, Warren Young wrote:
> >> mysql # emerge -s mysql++
> >> Searching...
> >> [ Results for search key : mysql++ ]
> >> [ Applications found : 1 ]
> >> *  dev-db/mysql++
> >>       Latest version available: 2.2.2-r1
> >
> > This is about 6 months old.  If Chris Frey isn't going to update it, maybe
> > you'd be willing to take this package over?
> Actually, I'm a Gentoo dev, too, and just bumped the package last week.
> However, the ebuild is not marked stable yet. That has to wait at least
> one month.
> mysql++-2.2.2-r1.ebuild: alpha amd64 hppa ~mips ppc sparc x86
> mysql++-2.3.2.ebuild: ~alpha ~amd64 ~hppa ~mips ~ppc ~sparc ~x86
> Daniel: You can use /etc/portage/package.keywords with an entry named
> "dev-db/mysql++" to install the newer version. However, your problem is
> related to missing include and library paths, which both aren't related
> to the ebuild.
> Greets,
> Michael
> --
> --

I was able to get it working with these two lines:
g++ -c -o simple1_simple1.o -Ilib
-I/usr/include/mysql -I/root/testcpp/sources/mysql/mysql++-2.3.2/lib
-g -O2 ./simple1.cpp
g++ -o simple1_test simple1_simple1.o
-L/root/testcpp/sources/mysql/mysql++-2.3.2    -lz  -lmysqlpp_util
-lmysqlclient -lmysqlpp -lz

However, I still need to update to the newer install anyway to make it
easier to use in the future.
On a side note, it would be nice to have better documentation in the
example files themselves. I had a tough time getting started with the
new classes, especially trying to figure out how mysql++ selects the
database, which I later found out was in util.h, but again, there's
not much commenting. I'm a learn-by-example not a learn-by-reference
kind of person, and the mysql++ documentation is completely
MySQL++ and GentooDaniel22 Oct
  • Re: MySQL++ and GentooWarren Young23 Oct
    • Re: MySQL++ and GentooMichael Hanselmann23 Oct
      • Re: MySQL++ and GentooDaniel23 Oct
        • Re: MySQL++ and GentooWarren Young24 Oct
      • Re: MySQL++ and GentooWarren Young24 Oct
        • Re: MySQL++ and GentooMichael Hanselmann24 Oct
          • Re: MySQL++ and GentooChris Frey23 May
            • Re: MySQL++ and GentooWarren Young27 Nov