delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/10/14:20:06

Date: Fri, 10 Mar 2000 12:39:58 -0500 (EST)
Message-Id: <200003101739.MAA22050@indy.delorie.com>
From: Eli Zaretskii <eliz AT delorie DOT com>
To: djgpp AT delorie DOT com
CC: "Khashayar Mofasser" <Alex_27 AT tesco DOT net>
In-reply-to: <001901bf89c7$3f2bde40$bf468cd4@alex_27tesco.net>
Subject: Re: Executables don't run after linking!
References: <001901bf89c7$3f2bde40$bf468cd4 AT alex_27tesco DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019