Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* DEC CC Compiler and LD linker
@ 1998-03-13  5:00 Matt Callaway
  1998-03-16  5:00 ` Joe Mario
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Callaway @ 1998-03-13  5:00 UTC (permalink / raw)



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". Ideas, anyone?



Thanks a lot,


Matt Callaway




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DEC CC Compiler and LD linker
  1998-03-13  5:00 DEC CC Compiler and LD linker Matt Callaway
@ 1998-03-16  5:00 ` Joe Mario
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1998-03-16  5:00 UTC (permalink / raw)
  To: Matt Callaway


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-16  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-03-13  5:00 DEC CC Compiler and LD linker Matt Callaway
1998-03-16  5:00 ` Joe Mario

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