See what your gcc version is by running:
gcc --version
I'm assuming that it's 3.2.2; if it's not, you may have to alter these instructions a little. You need autoconf, automake, and libtool installed (and maybe a few others that are slipping my mind).
First get "Patch for GCC 3.0", "Patch for GCC 3.2 (apply after 3.0 patch)", and "Patch for GCC 3.2.2" from
http://www.mysql.com/downloads/api-mysql++.html. Save them in the same directory the source tarball is in.
Then follow what I did:
lyle@poole:~/temp$ ls
mysql++-1.7.9.tar.gz mysql++-gcc-3.2.2.patch.gz
mysql++-gcc-3.0.patch.gz mysql++-gcc-3.2.patch.gz
lyle@poole:~/temp$ tar xzf mysql++-1.7.9.tar.gz
lyle@poole:~/temp$ gunzip *patch.gz
lyle@poole:~/temp$ patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.0.patch
patching file examples/Makefile.in
patching file examples/cgi_image.cc
.
.
.
patching file sqlplusint/vallist.cc
patching file sqlplusint/vallist1.hh
lyle@poole:~/temp$ patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.patch
patching file configure.in
patching file sqlplusint/coldata1.hh
patching file sqlplusint/compare1.hh
patching file sqlplusint/connection.cc
patching file sqlplusint/exceptions.hh.in
patching file sqlplusint/null1.hh
patching file sqlplusint/null2.hh
patching file sqlplusint/set3.hh
lyle@poole:~/temp$ patch -p1 -d mysql++-1.7.9 < mysql++-gcc-3.2.2.patch
patching file sqlplusint/connection.cc
patching file sqlplusint/type_info1.hh
lyle@poole:~/temp$ cd mysql++-1.7.9
lyle@poole:~/temp/mysql++-1.7.9$ rm Makefile.in aclocal.m4 build.sh config.guess config.h config.status config.sub configure install-sh libtool ltconfig ltmain.sh missing mkinstalldirs stamp* examples/Makefile.in sqlplusint/Makefile.in
lyle@poole:~/temp/mysql++-1.7.9$ libtoolize
You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'.
lyle@poole:~/temp/mysql++-1.7.9$ aclocal
lyle@poole:~/temp/mysql++-1.7.9$ autoconf
lyle@poole:~/temp/mysql++-1.7.9$ automake --foreign --add-missing
configure.in: installing `./install-sh'
configure.in: installing `./mkinstalldirs'
configure.in: installing `./missing'
examples/Makefile.am: installing `./depcomp'
lyle@poole:~/temp/mysql++-1.7.9$ ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
.
.
.
config.status: creating sqlplusint/exceptions.hh
config.status: executing depfiles commands
lyle@poole:~/temp/mysql++-1.7.9$ make
.
.
.
lyle@poole:~/temp/mysql++-1.7.9$ su
Password:
root@poole:/home/lyle/temp/mysql++-1.7.9# make install
.
.
.
root@poole:/home/lyle/temp/mysql++-1.7.9# exit
exit
lyle@poole:~/temp/mysql++-1.7.9$
If the library works correctly, you can do what the mysql++ people should have done in the first place so their users wouldn't have to go through all this pain and suffering:
lyle@poole:~/temp/mysql++-1.7.9$ make dist
.
.
.
You'll find a source tarball called sqlplus-1.7.0.tar.gz in the current directory that you'll be able to use the old ./configure, make, make install sequence with.
Lyle