Xref: news2.mv.net comp.os.msdos.djgpp:6903 From: brownjoh AT sfu DOT ca (Travis Brown-John) Newsgroups: comp.os.msdos.djgpp Subject: Hello World = Crash Date: Wed, 07 Aug 1996 08:02:45 GMT Organization: Okanagan Internet Junction Lines: 39 Message-ID: <4u9br7$off@felix.junction.net> Reply-To: brownjoh AT sfu DOT ca NNTP-Posting-Host: invermere-03.rockies.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 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. Thanks, Travis brownjoh AT sfu DOT ca