Mail Archives: djgpp/2000/03/10/14:20:06
> gpp -o run.exe account.o screen.o runacc.o -lpdcurses
>
> DJGPP compiles it without errors, but when i try to run the "RUN.EXE" =
> program it stalls or something, cause nothing happenes and i have to =
> press ctrl-c. However the same program runs fine on UNIX, so it can't =
> bee the program, right?.
Yes, it can be the program, because DOS/Windows isn't Unix.
My advice would be this: run the program, and when it hangs, press
Ctrl-BREAK instead of Ctrl-C. The program will then print a register
dump and a traceback of function call stack. With that info still on
the screen, run the program SYMIFY (provided as part of djdev203.zip),
and it will print the names of the functions and the filename/line
number where they were called. The topmost function is the place
where your program hangs. You need to look there and try to
understand why it does so. If you cannot figure this out, post here
the SYMIFY'ed traceback and the source code around the place(s) where
the traceback points.
If SYMIFY doesn't appear to work, recompile all the sources with the
-g switch and relink with -g switch, then try again.
Section 9.3 of the DJGPP FAQ list (v2/faq230b.zip) has more
information about SYMIFY, in case you need that.
- Raw text -