delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/01/26/13:48:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Wed, 26 Jan 2005 20:43:52 +0200
From: "Eli Zaretskii" <eliz AT gnu DOT org>
Sender: halo1 AT zahav DOT net DOT il
To: djgpp AT delorie DOT com
Message-ID: <01c503d7$Blat.v2.4$20bdf8a0@zahav.net.il>
X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.4
In-reply-to: <wrIJd.42$Bc7.36@newsfe3-win.ntli.net> (My.address@end.of.post)
Subject: Re: Compile problem
References: <wrIJd.42$Bc7 DOT 36 AT newsfe3-win DOT ntli DOT net>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "Mike C" <My DOT address AT end DOT of DOT post>
> Date: Wed, 26 Jan 2005 08:22:52 GMT
> 
> I have a small compile issue:  Running in a DOS window under W2000, if I
> compile using RHIDE, the resulting program runs fine on my PC, but, it
> seems, not on anybody else's.

What does the program do on other PCs?  And how do you run it on your
PC?  Do you run it from the DOS box's command prompt, or in some other
way (e.g., from within RHIDE)?

> If I compile using
> 
> gcc -Wall -O2 -o myprog.exe myprog.c
> 
> then the program runs fine on other people's PC's.

Can you compile the program both ways, each time under a different
name, and then show a directory listing with the results?

> Can you please tell me a) how to do it, and b) any reason why the program
> compiled by RHIDE won't run on other PC's?

I suspect that the program compiled under RHIDE was not linked to be a
stand-alone DOS executable, but only a COFF image that Windows cannot
run.  If you answer the questions above, I might be able to see if my
suspicions are correct.

- Raw text -


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