List:MySQL++« Previous MessageNext Message »
From:Dale Smith Date:June 10 2005 7:04pm
Subject:Re: Link errors with resetdb example program
View as plain text  
I got the old version off the system, and re-compiled the library, without 
changing the configure-generated Makefile in any way. I still have the 
same problem. Sorry, but I don't think this is a problem with my 
installation. I'm running a 64-bit Itanium platform; has anyone 
successfully used mysql++ on that platform before?

[dsmith@saquri01 mysql++-1.7.40]$ make
make  all-recursive
make[1]: Entering directory `/home/pub/software/mysql++/mysql++-1.7.40'
Making all in lib
make[2]: Entering directory 
`/home/pub/software/mysql++/mysql++-1.7.40/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/pub/software/mysql++/mysql++-1.7.40/lib'
Making all in examples
make[2]: Entering directory 
`/home/pub/software/mysql++/mysql++-1.7.40/examples'
/bin/sh ../libtool --mode=link g++  -g -O2  -L/opt/boost/1.32/lib 
-L/usr/local/mysql/lib/mysql -o resetdb  resetdb.o util.o 
../lib/libmysqlpp.la  -lz -lmysqlclient
g++ -g -O2 -o .libs/resetdb resetdb.o util.o  -L/opt/boost/1.32/lib 
-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,/opt/mysql++/mysql++-1.7.40/lib -Wl,--rpath 
-Wl,/opt/mysql/4.1.10a-src/lib/mysql
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp5QueryE0_Sd+0x18): undefined 
reference to `std::basic_iostream<char, std::char_traits<char> 
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp5QueryE0_Sd+0x28): undefined 
reference to `std::basic_iostream<char, std::char_traits<char> 
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp8SQLQueryE0_Sd+0x18): undefined 
reference to `std::basic_iostream<char, std::char_traits<char> 
>::~basic_iostream()'
resetdb.o(.gnu.linkonce.r._ZTCN7mysqlpp8SQLQueryE0_Sd+0x28): undefined 
reference to `std::basic_iostream<char, std::char_traits<char> 
>::~basic_iostream()'
collect2: ld returned 1 exit status
make[2]: *** [resetdb] Error 1
make[2]: Leaving directory 
`/home/pub/software/mysql++/mysql++-1.7.40/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pub/software/mysql++/mysql++-1.7.40'
make: *** [all] Error 2

Dale Smith, Ph.D.
dalesmith@stripped
DTCC Risk Management
Quantitative Group
212-855-7641




Warren Young <mysqlpp@stripped> 
06/09/2005 10:28 AM

To
MySQL++ Mailing List <plusplus@stripped>
cc

Subject
Re: Link errors with resetdb example program






Dale Smith wrote:
> 
> [dsmith@saquri01 examples]$ make -f Makefile.simple clean && make -f 
> Makefile.simple

FYI, you can shorten that to "make -f Makefile.simple clean all"

 From other posts in the thread:

> I have version 1.7.40 of MySQL++

Is it possible that you have other versions of MySQL++ floating around 
on your system?  Makefile.simple and Makefile.am will use different 
versions of the library.

> We are using gcc 3.4.3.

I just tried the command above on a Fedora Core 3 system running GCC 
3.4.3, and it works fine.

-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    
http://lists.mysql.com/plusplus?unsub=1



Thread
Link errors with resetdb example programDale Smith8 Jun
  • Re: Link errors with resetdb example programChris Frey8 Jun
    • Re: Link errors with resetdb example programDale Smith8 Jun
      • Re: Link errors with resetdb example programChris Frey8 Jun
        • Re: Link errors with resetdb example programDale Smith8 Jun
        • Re: Link errors with resetdb example programDale Smith8 Jun
          • Re: Link errors with resetdb example programChris Frey9 Jun
  • Re: Link errors with resetdb example programWarren Young9 Jun
    • Re: Link errors with resetdb example programDale Smith9 Jun
    • Re: Link errors with resetdb example programDale Smith10 Jun
      • Re: Link errors with resetdb example programWarren Young10 Jun
        • Re: Link errors with resetdb example programDale Smith10 Jun
          • Re: Link errors with resetdb example programWarren Young10 Jun
            • Re: Link errors with resetdb example programChris Frey12 Jun
              • Re: Link errors with resetdb example programDale Smith13 Jun
              • Re: Link errors with resetdb example programDale Smith13 Jun
              • Re: Link errors with resetdb example programWarren Young13 Jun
                • Re: Link errors with resetdb example programChris Frey14 Jun
                  • Re: Link errors with resetdb example programWarren Young14 Jun