* Re: C++ and DEC Unix: string too long
@ 1997-10-28 15:21 Corey Kosak
1997-10-28 19:48 ` Joe Buck
0 siblings, 1 reply; 4+ messages in thread
From: Corey Kosak @ 1997-10-28 15:21 UTC (permalink / raw)
To: egcs; +Cc: Greg Galloway
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: C++ and DEC Unix: string too long
1997-10-28 15:21 C++ and DEC Unix: string too long Corey Kosak
@ 1997-10-28 19:48 ` Joe Buck
0 siblings, 0 replies; 4+ messages in thread
From: Joe Buck @ 1997-10-28 19:48 UTC (permalink / raw)
To: Corey Kosak; +Cc: egcs, gregg
> > 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."
Well, there's no good reason for the symbol in question to be anywhere
near 4K characters -- that's a defect in the mangling scheme.
> The standard workaround, as far as I know, is to subclass string, something
> like
>
> class mystring : public string {
> ...
> };
Yes, this is the technique I use (I also have used it because it avoids
the problems with function.h with g++ 2.7.2.x).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: C++ and DEC Unix: string too long
1997-10-28 12:21 Greg Galloway
@ 1997-10-28 17:57 ` dave madden
0 siblings, 0 replies; 4+ messages in thread
From: dave madden @ 1997-10-28 17:57 UTC (permalink / raw)
To: gregg; +Cc: egcs
=>From: Greg Galloway <gregg@eoeml.gtri.gatech.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.
I've gotten the same message under DEC Unix 4.0; you can get around it
by not compiling with debugging information (-g). (Of course, this
means you can't debug, but that's the way it goes.) I don't know any
other workaround, but would be glad to hear of one...
d.
^ permalink raw reply [flat|nested] 4+ messages in thread
* C++ and DEC Unix: string too long
@ 1997-10-28 12:21 Greg Galloway
1997-10-28 17:57 ` dave madden
0 siblings, 1 reply; 4+ messages in thread
From: Greg Galloway @ 1997-10-28 12:21 UTC (permalink / raw)
To: egcs
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.
Thanks,
Greg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-10-28 19:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-28 15:21 C++ and DEC Unix: string too long Corey Kosak
1997-10-28 19:48 ` Joe Buck
-- strict thread matches above, loose matches on Subject: below --
1997-10-28 12:21 Greg Galloway
1997-10-28 17:57 ` dave madden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).