www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/13/07:52:59

Date: Fri, 13 Feb 1998 13:52:21 +0100
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199802131252.NAA03151@acp3bf.physik.rwth-aachen.de>
To: perfecto AT mail2 DOT nai DOT net (Perry DOT Fecteau AT Republican DOT COM)
Cc: djgpp AT delorie DOT com
Subject: Re: linux object (*.o) with DJGPP
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B

In article <34eaf18d DOT 188475533 AT news DOT nai DOT net> you wrote:
> can one compiled under dos be used in windows asuming there's no dos
> specific code in it?  i.e. just ansi c with no hardware calls.

Generally: *no*. The only exception might be an .o file that has no
external references at all, i.e. a totally self-contained module (not
a single library function called, not even a macro, nothing).

The cases where object files from more than one compiler can be mixed
without major hassles blocking the way are actually so rare that you
might just as well forget about the concept right away. If you need an
object file for compiler XYZ, you'll most probably have to compile it
using XYZ. Exceptions do exist, of course (like TASM -> obj2coff ->
DJGPP), but they tend to be error-prone themselves.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) 
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019