This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ and DEC Unix: string too long
- To: egcs at cygnus dot com
- Subject: Re: C++ and DEC Unix: string too long
- From: Corey Kosak <kosak at cs dot cmu dot edu>
- Date: Tue, 28 Oct 1997 18:20:29 -0500
- cc: Greg Galloway <gregg at eoeml dot gtri dot gatech dot edu>
> Has anyone got EGCS/C++ to work on an Alpha under DEC Unix 3.2?
> I get an error about string too long because the mangled name of
> a template instantiation (hash_map in this case) is 4144 chars
> long.
Amazing that it's the 90's and some people [DEC] still write software with
arbitrary fixed limits. "Surely no one would ever want a symbol longer than
4K characters."
The standard workaround, as far as I know, is to subclass string, something
like
class mystring : public string {
...
};
`mystring' needs to have constructor stubs for all the constructors in
`string', plus probably stubs for the overloaded operators as well.