Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
MySQL++ and Gentoo

MySQL++ and Gentoo

2007-10-23       - By Daniel

 Back
On 10/23/07, Michael Hanselmann <mysql@(protected)> 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=mysql@(protected)