C++ and DEC Unix: string too long
Corey Kosak
kosak@cs.cmu.edu
Tue Oct 28 15:21:00 GMT 1997
> 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.
More information about the Gcc
mailing list