9 messages in com.mysql.lists.plusplusRe: MySQL++ and Gentoo
FromSent OnAttachments
Daniel22 Oct 2007 14:51 
Warren Young22 Oct 2007 15:47 
Michael Hanselmann23 Oct 2007 09:24 
Daniel23 Oct 2007 11:06 
Warren Young24 Oct 2007 03:49 
Warren Young24 Oct 2007 04:01 
Michael Hanselmann24 Oct 2007 13:49 
Chris Frey22 May 2008 16:21.diff, .patch
Warren Young26 Nov 2008 18:35 
Subject:Re: MySQL++ and Gentoo
From:Daniel (dani@gmail.com)
Date:10/23/2007 11:06:19 AM
List:com.mysql.lists.plusplus

On 10/23/07, Michael Hanselmann <mys@hansmi.ch> 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/root/testcpp/sources/mysql/mysql++-2.3.2/examples -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 learn-by-reference.