Mail Archives: djgpp/1993/07/31/00:57:31
HI !
I am back! I am sorry to bother you, but I am getting closer to my
C-compiler for msdos.
I want to first thank aeppert AT ideanet DOT doe DOT state DOT in DOT us for answering my
last question.
The problem:
When I compiled hello.c, the compiler liked it. (gcc hello.c -o hello,
I then typed aout2exe hello)
Here is my program:
#include <stdio.h>
main() {
int n;
printf("Hello, world!\n");
for (n = 0; n < 2; n++)
printf("HI!\n");
scanf("%d", n);
printf("%d", n);
}
But when I run the program by typeing hello I get:
Hello, world!
HI!
HI!
34 { I then typed the number 34, no real reason }
Segmentation violation in
Page fault at eip=31ed
Call frame traceback EIPS
0x00031ed
0x0002dfa
0x0000183
0x000010d
Since I don't know that much about computer, I am not able to figure out the
above error. What does EIPS mean?
What can I do to fix.
I have the following files from ftp.clarkson.edu:
gcc241bn.zip
gcc241dc.zip
gas221bn.zip
gas221dc.zip
bnu22bn-coff.zip
bnu22bn.zip
bnu22dc.zip
djdev110.zip
djemu110.zip
Do I need more?
Thank you very much,
Michael Shipman
- Raw text -