This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with the recent snapshot (971207)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]