From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Buck To: gregg@eoeml.gtri.gatech.edu (Greg Galloway) Cc: egcs@cygnus.com Subject: Re: DEC Unix and string too long with templates Date: Mon, 04 May 1998 19:47:00 -0000 Message-id: <199805050049.RAA09176@atrus.synopsys.com> References: <199805041516.LAA03801@nospokes.gtri.gatech.edu> X-SW-Source: 1998-05/msg00111.html > I have once again run into the symbol too long error message from the > DEC Unix assembler. When running DEC Unix 3.2, the simple solution was to > turn debugging off. Now with 4.0, I can still get the error even without > debugging. Corey Kosak and Joe Buck posted back in October that the common > work-around is to subclass string. The basic idea is simple enough: class MyString : public string { public: // declare constructors // declare assignment operators }; that is, you have to redeclare the things that don't inherit. > Is it possible to use GAS under DEC Unix to get around this problem? Yes (gas has no limit on symbol length). Even so, the names are too long, meaning you spend a lot of disk space on debug information. The snapshots have an experimental solution, the -fsquangle flag, which uses a new name mangling scheme that is a lot more compact for template names ... but it will be a while before that can be made available.