From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,76f688cfdd93632d X-Google-Attributes: gid1164f8,public From: Joe Mario Subject: Re: DEC CC Compiler and LD linker Date: 1998/03/16 Message-ID: <350D4547.167E@zk3.dec.com>#1/1 X-Deja-AN: 334570142 Content-Transfer-Encoding: 7bit References: <35099E66.EB6D7387@jps.net> To: Matt Callaway Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.sys.dec Matt Callaway wrote: > I am getting an unexpected error when linking a program. All object > files are generated using CPP and CC. When I try to link the files, I > get an object file format error "Bad magic file number". It looks like one of the files in your link line is not a valid object file. The linker will emit that error message when an object file is neither an OMAGIC, an NMAGIC or a ZMAGIC file. The ld manpage describes the meaning of those three kinds of files. The default is ZMAGIC and most users have no reason to change it. I'd double check to see exactly what is being linked. Joe Mario DIGITAL UNIX Development Environment