delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/10/10/09:15:19

From: "MikeC" <my DOT address AT end DOT of DOT post>
Newsgroups: comp.os.msdos.djgpp
Subject: Changing Compile/Link options
Date: Thu, 10 Oct 2002 13:54:40 +0100
Organization: Storage Technology Corporation
Lines: 37
Message-ID: <ao3taa$k20$1@news.stortek.com>
NNTP-Posting-Host: 129.80.172.54
X-Trace: news.stortek.com 1034254475 20544 129.80.172.54 (10 Oct 2002 12:54:35 GMT)
X-Complaints-To: news AT news DOT stortek DOT com
NNTP-Posting-Date: Thu, 10 Oct 2002 12:54:35 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Good Folk,

I have recently loaded DJGPP onto a Win2K platform. I use RHIDE, and
everything is working fine - as long as it stays on my PC!  If I send a
compiled program to somebody else with Win2K, when they attempt to execute
the program, a DOS box opens on their screen them immediately closes again -
and that's it. Show over!

A colleague of mine also uses DJGPP, but he doesn't use RHIDE - he uses some
other editor, then compiles with the line :

gcc -Wall -O2 -o myprog.exe myprog.c

and his compiled programs work on other Win2K machines.

RHIDE on my machine executes

gcc -g -c myprog.c -o myprog.o

then

gcc -o myprog.exe myprog.o

I have messed about with the settings for the compile and linker options a
bit, but I can't make it compile a program that somebody else can use. If I
come out of RHIDE and execute the line that my colleague uses, of course, it
works, but what am I doing wrong in RHIDE?

Any help or pointers appreciated.

Mike.

collim'at'europe'dot'stortek'dot'com

- just to confuse the automatic address gatherers. I don't want their spam!


- Raw text -


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