dbTalk Databases Forums  

FW: Installing Mysql++ on a SLES 9 system

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss FW: Installing Mysql++ on a SLES 9 system in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ouellette_Brad@emc.com
 
Posts: n/a

Default FW: Installing Mysql++ on a SLES 9 system - 07-07-2005 , 02:09 PM






------_=_NextPart_001_01C58327.3B3B6E2B
Content-Type: text/plain

Hello,
I tried installing 1.7.40 version of mysql++ onto a Suse system.
I have mysql version 4.1.12 installed from source. I tried compiling mysql++
from the source. ./configure seems to succeed, but make fails claiming
"undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_empty_rep_storage'" I was going to attached the
log from ./configure and make, but it seems the list doesn't have enough
room....

Thanks for any help,
Bradley Ouellette


g++ -g -O2 -o .libs/resetdb resetdb.o util.o -L/usr/lib/mysql
.../lib/.libs/libmysqlpp.so /usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lm
-lz -Wl,--rpath -Wl,/usr/local/lib
resetdb.o(.gnu.linkonce.t._ZStplIcSt11char_traitsI cESaIcEESbIT_T0_T1_EPKS3_R
KS6_+0x1c): In function `std::basic_string<char, std::char_traits<char>,
std::allocator<char> > std:perator+<char, std::char_traits<char>,
std::allocator<char> >(char const*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)':
/usr/include/g++/bits/stl_tree.h:1039: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
Quote:
::_S_empty_rep_storage'
resetdb.o(.gnu.linkonce.t._ZStplIcSt11char_traitsI cESaIcEESbIT_T0_T1_EPKS3_R
KS6_+0x26):/usr/include/g++/bits/stl_tree.h:235: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
Quote:
::_S_empty_rep_storage'
resetdb.o(.gnu.linkonce.t._ZNSt6vectorIN7mysqlpp9S QLStringESaIS1_EE14_M_fill
_insertEN9__gnu_cxx17__normal_iteratorIPS1_S3_EEjR KS1_+0xeb): In function
`std::vector<mysqlpp::SQLString, std::allocator<mysqlpp::SQLString>
Quote:
::_M_fill_insert(__gnu_cxx::__normal_iterator<mysq lpp::SQLString*,
std::vector<mysqlpp::SQLString, std::allocator<mysqlpp::SQLString> > >,
unsigned, mysqlpp::SQLString const&)':
/usr/include/g++/bits/stl_alloc.h:430: undefined reference to
`std::__default_alloc_template<(bool)1, (int)0>::_S_force_new'

------_=_NextPart_001_01C58327.3B3B6E2B--


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: FW: Installing Mysql++ on a SLES 9 system - 07-07-2005 , 06:07 PM






On Thu, Jul 07, 2005 at 03:09:14PM -0400, Ouellette_Brad (AT) emc (DOT) com wrote:
Quote:
Hello,
I tried installing 1.7.40 version of mysql++ onto a Suse system.
I have mysql version 4.1.12 installed from source. I tried compiling mysql++
from the source. ./configure seems to succeed, but make fails claiming
"undefined reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_empty_rep_storage'" I was going to attached the
log from ./configure and make, but it seems the list doesn't have enough
room....
What version of gcc is on your Suse system? Can you compile a simple
C++ example like:

#include <string>

int main()
{
std::string s = "hello world";
s += "hello again";
}

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.