Thanks again for responding.
We are using gcc 3.4.3. I copied the tarball I downloaded and re-made in a
separate directory. Configure picked up the LDFLAGS and CPPFLAGS
variables, where I had put some boost directories. I removed them, removed
the build directory, and untarred so I can rebuild cleanly. Below is some
of the make output.
I will see what I can do with another compiler, but it may take some time
to set that up. I do have the Intel 8.0 compiler, so I may try it tomorrow
morning.
creating libmysqlpp.la
(cd .libs && rm -f libmysqlpp.la && ln -s ../libmysqlpp.la libmysqlpp.la)
make[2]: Leaving directory `/tmp/dsmith/mysql++-1.7.40/lib'
Making all in examples
make[2]: Entering directory `/tmp/dsmith/mysql++-1.7.40/examples'
source='resetdb.cpp' object='resetdb.o' libtool=no \
depfile='.deps/resetdb.Po' tmpdepfile='.deps/resetdb.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/mysql/include/mysql
-g -O2 -c -o resetdb.o `test -f 'resetdb.cpp' || echo './'`resetdb.cpp
source='util.cpp' object='util.o' libtool=no \
depfile='.deps/util.Po' tmpdepfile='.deps/util.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/usr/local/mysql/include/mysql
-g -O2 -c -o util.o `test -f 'util.cpp' || echo './'`util.cpp
/bin/sh ../libtool --mode=link g++ -g -O2 -L/usr/local/mysql/lib/mysql
-o resetdb resetdb.o util.o ../lib/libmysqlpp.la -lz -lmysqlclient
mkdir .libs
g++ -g -O2 -o .libs/resetdb resetdb.o util.o -L/usr/local/mysql/lib/mysql
../lib/.libs/libmysqlpp.so
/opt/mysql/4.1.10a-src/lib/mysql/libmysqlclient.so -lcrypt -lnsl -lm -lz
-Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/opt/mysql/4.1.10a-src/lib/mysql
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp5QueryE0_Sd+0x18):/opt/gcc/3.4.3/bin/../lib/gcc/ia64-unknown-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.h:258:
undefined reference to `std::basic_iostream<char, std::char_traits<char>
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp5QueryE0_Sd+0x28):/opt/gcc/3.4.3/bin/../lib/gcc/ia64-unknown-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.h:258:
undefined reference to `std::basic_iostream<char, std::char_traits<char>
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp8SQLQueryE0_Sd+0x18):/opt/gcc/3.4.3/bin/../lib/gcc/ia64-unknown-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.h:258:
undefined reference to `std::basic_iostream<char, std::char_traits<char>
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp8SQLQueryE0_Sd+0x28):/opt/gcc/3.4.3/bin/../lib/gcc/ia64-unknown-linux-gnu/3.4.3/../../../../include/c++/3.4.3/bits/char_traits.h:258:
undefined reference to `std::basic_iostream<char, std::char_traits<char>
>::~basic_iostream()'
collect2: ld returned 1 exit status
Dale Smith, Ph.D.
dalesmith@stripped
DTCC Risk Management
Quantitative Group
212-855-7641
Chris Frey <cdfrey@stripped>
06/08/2005 04:44 PM
To
plusplus@stripped
cc
Subject
Re: Link errors with resetdb example program
On Wed, Jun 08, 2005 at 04:31:45PM -0400, Dale Smith wrote:
> Thanks for the response.
>
> I can compile not only simple C++ programs, but other, more complicated
> ones. I have also successfully compiled and used other freeware
libraries
> in the past few weeks. That's why I was so surprised about this kind of
> problem.
>
> Without the special hack, I could not get MySQL++ to compile - the
library
> code compiled and linked but the examples wouldn't compile. I thought
Could you post the errors from the straight compile? I'm assuming they
are the same, but maybe there will be a clue. More info the better.
What compiler are you using? Is it possible to upgrade, or install a
side compiler for testing? I run gcc-4.0.0 in a separate user account
and home directory, since my system compiler is 3.3.4. This lets me
play easily with different compiler versions... and it may help rule out
a compiler problem in your case.
If you're interested in my script setup for this, I'll be happy to post
them.
- Chris
--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=1