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: NNTP-Posting-Host: bridgeport-usr2-47.nai.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 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--------------------------