Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Joe Mario <mario@zk3.dec.com>
To: Matt Callaway <mbcallaw@jps.net>
Subject: Re: DEC CC Compiler and LD linker
Date: 1998/03/16	[thread overview]
Message-ID: <350D4547.167E@zk3.dec.com> (raw)
In-Reply-To: 35099E66.EB6D7387@jps.net


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



      reply	other threads:[~1998-03-16  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-13  5:00 DEC CC Compiler and LD linker Matt Callaway
1998-03-16  5:00 ` Joe Mario [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox