sstream header of gcc 3.1 on sun solaris

Niv Drory drory@astro.as.utexas.edu
Thu Aug 8 16:27:00 GMT 2002


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 
-------------------------------------------------------------------



More information about the Libstdc++ mailing list