On 10/23/07, Michael Hanselmann <mysql@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 > > -- > http://hansmi.ch/ > > --
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.
--
MySQL++ Mailing List
For list archives:
http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=lists@pantek.com
Received on Tue Oct 23 14:06:54 2007
This archive was generated by hypermail 2.1.8
: Fri Jul 04 2008 - 00:21:35 EDT
|