delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/12/09:30:49

Date: Thu, 12 Feb 1998 16:29:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: cappa luca <st960706 AT educ DOT di DOT unito DOT it>
cc: djgpp AT delorie DOT com
Subject: Re: linux object (*.o) with DJGPP
In-Reply-To: <Pine.SUN.3.91.980212140412.12100A-100000@siros>
Message-ID: <Pine.SUN.3.91.980212162705.20562B-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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