Message-ID: <38DF141A.D69718BB@home.com> From: Mark & Candice White X-Mailer: Mozilla 4.7 [en] (Win95; I) X-Accept-Language: en,pdf MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: a.out, is this file is runnable on linux References: <200003261437 DOT TAA00827 AT midpec DOT com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 34 Date: Mon, 27 Mar 2000 07:56:10 GMT NNTP-Posting-Host: 24.0.127.127 X-Complaints-To: abuse AT home DOT net X-Trace: news1.rdc1.mi.home.com 954143770 24.0.127.127 (Sun, 26 Mar 2000 23:56:10 PST) NNTP-Posting-Date: Sun, 26 Mar 2000 23:56:10 PST Organization: @Home Network To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Djgpp is a port of gcc to dos. The main reason an a.out file made in dos will not run in linux is that while the format of the file is similar, the djgpp code calls dos to do things like read the keyboard and write to the screen. Linux will have no idea what your program is trying to do and will consider this code erroneous. "Robert L." wrote: > Thanks, is only because of the name of the file, i was thinking that the > output was the same as gnu. And djgpp change the a.out into the exe file. > I have not really plan to reinstall linux, but i was just thinking. > > Prashant TR a écrit dans le message <200003261437 DOT TAA00827 AT midpec DOT com>... > >"Robert L." proclaimed: > > > >> If i compile a program under dos, a file called a.out is create. Another > >> file a.exe is create. > >> I already make some program under Linux ( RH 5.2 ) and i was using gnu. > It > >> create a file call a.out. If i reinstall the Linux OS and if i run the > a.out > >> file, is this going to work? > > > >Are you saying that you want to run the a.out generated by DJGPP on Linux? > >PLEASE DON'T REINSTALL LINUX or do any such thing. It's not going to work. -- ------------------------------------------ Mark & Candice White System programming hobbyists. http://members.home.net/mhewii/welcome.htm