Mail Archives: djgpp/1996/08/08/10:00:03
From: brownjoh AT sfu DOT ca (Travis Brown-John)
Date: Wed, 07 Aug 1996 08:02:45 GMT
This is ridiculous, I have installed djgpp, just recently. I can
compile code, justfine, but when I try to run anything, including the
standard "Hello Wolrd" program it crashes.
This is my simple code:
#include <stdio.h>
main()
{
write("Hello World\n");
}
I compile it as such: gcc -o hello.exe hello.c
and this is what happens when I execute it:
C:\stuff\djgpp>hello
Exiting due to signal SIGSEGV
General Protection Fault at eip=00001bdb, error=a030
eax=ffffffff ebx=0004c0c0 ecx=00000000 edx=00000000 esi=00000054
edi=00009ad4
ebp=00049acc esp=00049ab4 cs=00a7 ds=00af es=00af fs=0087 gs=00bf
ss=00af
Call frame traceback EIPs:
0x00001bdb
0x000000af
C:\stuff\djgpp>
this must be something stupid. Please help.
OK. This looks suspiciously like DJGPP V1. Before I tell you to get V2...
V1 produces COFF a.out files only. You then have to prepend the GO32 DOS
extender. Try this:
gcc -o hello hello.c
coff2exe hello
hello
OK, now. Get DJGPP V2. Version 1.xx is no longer supported. V2 no longer
requires its own DOS extender but uses any DPMI 0.9+ server for Protected mode
services. You can even download one of several free DPMI servers, CWSDPMI and
PMODE/DJ to name two. The V2 compiler can generate .exe format files directly.
To download go to either DJ's web site (http://www.delorie.com/) or:
ftp://ftp.coast.net/SimTel/vendors/djgpp/v2/readme.1st
ftp://ftp.coast.net/SimTel/vendors/djgpp/v2/
ftp://ftp.coast.net/SimTel/vendors/djgpp/v2gnu/
ftp://ftp.coast.net/SimTel/vendors/djgpp/v2tk/
ftp://ftp.coast.net/SimTel/vendors/djgpp/v2misc/
Get the readme.1st file first, it lists the files you NEED and the ones you
will WANT and how to install.
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -