www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/13/02:31:36

From: perfecto AT mail2 DOT nai DOT net (Perry DOT Fecteau AT Republican DOT COM)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: linux object (*.o) with DJGPP
Date: Fri, 13 Feb 1998 07:09:49 GMT
Organization: Milhouse America
Lines: 24
Message-ID: <34eaf18d.188475533@news.nai.net>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980212162705 DOT 20562B-100000 AT is>
NNTP-Posting-Host: bridgeport-usr2-47.nai.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

On Thu, 12 Feb 1998 16:29:29 +0200 (IST), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>
>On Thu, 12 Feb 1998, cappa luca wrote:
>
>> Can I use an objectfile, such as "osp.o", compiled under LiNUX  
>> with DJGPP ?
>
>No, you can't.  Linux uses a different object file format (ELF, whereas 
>DJGPP uses COFF).  You can convert ELF to COFF if you have Binutils which 
>support both formats, but even then an object file can require external 
>functions and variables which don't exist on DJGPP.
>
>In sum: don't do that, object files from different systems don't mix 
>well.

---------------------http://w3.nai.net/~perfecto--------------------------
Perry Fecteau, Republican
The new pages go up January 1,1998  *** POSTPONED UNTIL FURTHER NOTICE ***
---------------------http://w3.nai.net/~perfecto--------------------------

- Raw text -


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