Mail Archives: djgpp/1997/07/09/17:00:06
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 *
*****************************************************************
- Raw text -