From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7c665566a0ff5025 X-Google-Attributes: gid1164f8,public From: Joe Mario Subject: Re: help: linker error under Digital Unix Date: 1999/07/22 Message-ID: <37973DA2.C4FCF9A0@zk3.dec.com>#1/1 X-Deja-AN: 504047873 Content-Transfer-Encoding: 7bit References: <3utVBGApWgl3EwJN@wyvis.demon.co.uk> To: roger@wyvis.demon.co.uk, rogerw@autogrouper.co.uk, mario@zk3.dec.com Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.sys.dec Roger Woodward wrote: > does anyone have an idea what the basic cause of the following linker > error is? > > Object file format error in: ...libxyz.a (abc.o) > local_is_complete: iaux(316)>iauxMax(132) for obj > libxyz.a(abc.o) > > im trying to link a library built with gnu c++ with objects/libraries > built with dec cc. > > libraries built under 3.2.c. dec cc running under 4.0d This was a bug in an old GCC version that would corrupt things - we added an error check in the linker at some point (V4.0?) so that the bad objects wouldn't continue to proliferate. You might be able to "workaround" the error by not using -g on the compile or link line. The problem here is that the old objects were built with buggy tools and the old linker never complained about the bug (it just did something wrong silently), and we've since enhanced the linker to complain upfront rather than do something incorrect. At any rate, recompilation with a newer version of the tools is the recommended fix. Joe Mario Compaq Tru64 Development Environment