This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems with the recent snapshot (971207)
- To: Paul Henning <phenning at cs dot uiowa dot edu>
- Subject: Re: problems with the recent snapshot (971207)
- From: "Orn E. Hansen" <oe dot hansen at oehansen dot pp dot se>
- Date: Tue, 9 Dec 1997 15:01:06 +0100
- Cc: egcs at cygnus dot com, jason at cygnus dot com, law at cygnus dot com
- References: <199712081821.NAA02972@hal.ttlc.net><199712082343.RAA29705@server.cs.uiowa.edu>
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