This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
sstream header of gcc 3.1 on sun solaris
- From: Niv Drory <drory at astro dot as dot utexas dot edu>
- To: gcc-help at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 8 Aug 2002 18:27:31 -0500 (CDT)
- Subject: sstream header of gcc 3.1 on sun solaris
The folowing simple code produces
1) warnings about global symbols having non-global bindings
in libgcc_s.so, and
2) fails to link due to undefined symbols:
std::basic_stringstream<char, std::char_traits<char>,
std::allocator<char> >::basic_stringstream
[in-charge](std::_Ios_Openmode)
and the destructor of that class is missing, too.
----------------------
#include<sstream>
using namespace std;
int main( void )
{
stringstream s_stream;
}
--------------------------
Any ideas?
the compiler output is:
[sol:~/tmp]$ g++ test.cpp
ld: warning: global symbol `_DYNAMIC' has non-global binding:
(file
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgcc_s.so
value=LOCL);
ld: warning: global symbol `_PROCEDURE_LINKAGE_TABLE_' has non-global
binding:
(file
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgcc_s.so
value=LOCL);
ld: warning: global symbol `_GLOBAL_OFFSET_TABLE_' has non-global binding:
(file
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.1/../../../libgcc_s.so
value=LOCL);
Undefined first referenced
symbol in file
std::basic_stringstream<char, std::char_traits<char>, std::allocator<char>
>::~basic_stringstream [in-charge]()/var/tmp//ccMzJVwA.o
std::basic_stringstream<char, std::char_traits<char>, std::allocator<char>
>::basic_stringstream[in-charge](std::_Ios_Openmode)/var/tmp//ccMzJVwA.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
-------------------------------------------------------------------
Niv Drory |
Department of Astronomy | phone: (512) 471 7426
The University of Texas at Austin | drory@astro.as.utexas.edu
-------------------------------------------------------------------