From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Conveting .OBJ to .o Date: Tue, 12 Nov 1996 18:49:07 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 25 Message-ID: <32893723.444@cs.com> References: <01bbd0e8$60f6d5c0$35fd0fa4 AT cybertron DOT ulb DOT ac DOT be> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp108.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Battista Ruffaldi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Battista Ruffaldi wrote: > > Is there a converter for the old .OBJ generated by TASM and other > compilers/assemblers to the .o format in use by Djgpp and friends? It's not easy. The vast majority of object code from other compilers is totally incompatible with the DJGPP format. For your code to be compatible, it must have been compiled as flat-model COFF, and even then you are running some risks. Your best bet is to get the source for the object files and recompile it with DJGPP. Even then, significant changes will have to be made if the code does any direct memory access or other DPMI nonos. The best source of information on object and library conversion is the DJGPP FAQ, available from SimTel as v2/faq202b.zip. Look in chapters 17 and 18 primarily, and there are many other useful tidbits scattered about. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | ---------------------------------------------------------------------