From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with ezgcc Date: Wed, 09 Jul 1997 13:07:15 +0200 Organization: TU Chemnitz-Zwickau Lines: 59 Message-ID: <33C370E3.20D406BB@Mathematik.TU-Chemnitz.DE> References: <199707090838 DOT KAA08864 AT d1o26 DOT telia DOT com> NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de 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 Kristian Krebs wrote: > > Reading specs from c:/djgpp/lib\specs > gcc version 2.6.3 > c:/djgpp/bin\cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=6 > -Dunix - > Di386 -DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix > -D__i > 386 -D__GO32 -D__MSDOS hello.c c:/djgpp/tmp\cc010145 > GNU CPP version 2.6.3 (80386, BSD syntax) Hey, that's DJGPP Version 1.x!!! I strongly recommend to upgrade to DJGPP 2.01. > The compiler has made hello.exe but when i run it my system goes down and I > get the following message: > > ---------------------------------------------------------------------------- > -------------------------------- > The program encountered an unspecified exception. > > Fault location: 12F4:0158 > > Interrupts in service: None Here is now you fault: You said that you made the hello.exe like: gcc -v -o hello.exe hello.o but in DJGPP Version 1.x it was not possible to create a real .exe file with such a line. The above line produces a COFF file which should be run with go32.exe or use the following syntax to create an exe file: gcc -o hello hello.o coff2exe hello BTW: You can reproduce similar errors at any time by renaming for instance any text file to have the .exe suffix and then try to run it :-) > CALL SETDJGPP Do you have modified setdjgpp.bat?? Since the normal syntax for calling it is: call setdjgpp c:\djgpp c:/djgpp Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************