Mail Archives: djgpp/2005/01/26/13:48:11
> 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 -