Mail Archives: djgpp/1998/02/13/07:52:59
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 -