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: C++ and DEC Unix: string too long


> 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.


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