From: Laurentiu Badea Newsgroups: comp.os.msdos.djgpp Subject: Re: Can I compile a msdos source to unix exe ? Date: Tue, 19 Nov 1996 18:57:47 +0200 Organization: Numerical Methods Laboratory Lines: 29 Message-ID: <3291E70B.5B7A5679@lmn.pub.ro> References: <328f2575 DOT 13493716 AT news2 DOT skynet DOT be> <01bbd4e9$a7a99d40$010200c0 AT weiqigao> NNTP-Posting-Host: gateway-ether10-100.lmn.pub.ro 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 Weiqi Gao wrote: > > Thierry DELATTRE wrote in article > <328f2575 DOT 13493716 AT news2 DOT skynet DOT be>... > > Hi, > > I don't know exactly djgpp. > > I need to compile a C source written on my msdos based PC and > > get a EXE files to run on a UNIX based PC (my provider HD) > > Is this possible with DJGPP and what programs do I need to do this? > > No. Actually, if your source is more algorithm-oriented (no PC hardware stuff like ports and such), and you stick to the ANSI C and you use DJGPP, there is a high chance that you will be able to port it to any Unix machine (if gcc is installed). Of course you will need to recompile the source and get a new executable for every platform, but it will work. GCC is the GNU C compiler for Unixes. DJGPP is the GCC port to DOS. So DJGPP is very compatible with gcc, if you remeber what I said above. Laurentiu -- --------------------------------------------------------------------- | Laurentiu Badea, bytemare AT lmn DOT pub DOT ro | | student at PUB, | | Computer Science Dept. http://www.lmn.pub.ro/~bytemare/ | ---------------------------------------------------------------------