problems with the recent snapshot (971207)

Orn E. Hansen oe.hansen@oehansen.pp.se
Tue Dec 9 06:04:00 GMT 1997


Paul Henning writes:
 > 
 > 
 > Essentially, this program won't link:
 > 
 > ===
 > #include <iostream.h>
 > #include <string>
 > int main(void) { string s = "Hello, world"; cout << s << endl; return 0; }
 > ===
 > 

 As the bastring.cc is supplied in the include directory I compiled it
as a template class...

------
#include <string>

template class basic_string<char>;

#include <std/bastring.cc>
------

and then tried to compile a program I have, with this object for
string, but I got the following additional errors... which appears to
indicate that templates are broken.

Menu.o(.data+0x0): multiple definition of `__default_alloc_template<false, 0>::free_list'
main.o(.data+0x34c): first defined here




More information about the Gcc mailing list