delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/20/17:52:06

From: "James O'Reilly" <liberty AT direct DOT ca>
Subject: Re: Determine Directory for .exe and .obj files
Newsgroups: comp.os.msdos.djgpp
References: <01bfa8a2$f611e740$688b42d8 AT default> <8dmli6$9ih$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
Organization: Preferred Company
Message-ID: <01bfa972$d8f89980$a68b42d8@default>
X-Newsreader: Microsoft Internet News 4.70.1161
Lines: 38
Date: Thu, 20 Apr 2000 20:15:19 GMT
NNTP-Posting-Host: 216.66.139.166
X-Complaints-To: abuse AT direct DOT ca
X-Trace: brie.direct.ca 956261719 216.66.139.166 (Thu, 20 Apr 2000 13:15:19 PDT)
NNTP-Posting-Date: Thu, 20 Apr 2000 13:15:19 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thank you for the solution, it has succeeded in solving the problem. 
D'Arcy 

Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de> wrote in article
<8dmli6$9ih$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>...
> James O'Reilly <liberty AT direct DOT ca> wrote:
> [...]
> > however, the compiler puts the .exe and .obj files into the
> > DJGPP/BIN directory by default. 
> 
> This only happens if you don't know how to work in a DOS command line
> environment. IOW, this usually is what Windows-users who never used
> DOS before they learned Win95 end up with. They just click on
> RHIDE.exe and expect it to behave like a Windows application --- it
> won't.
> 
> > To remedy this I want to find a way to have
> > the compiler save the .exe and .obj files by default in the same
directory
> > as the source files(For example, I save my .cpp files in c:/samples). 
> 
> These are the correct steps:
> 
> 1) Open a DOS box (Start->Programs->"MS-DOS command line",
>    or whatever they call it in the English version of Windows...)
> 2) type:
> 
> 	c:
> 	cd \camples
> 	rhide
> 
> The basic trick is that you have to take control over the 'current
> directory' RHIDE works from. That is where all the .o and the .exe
> files automatically end up in.
> -- 
> Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
> Even if all the snow were burnt, ashes would remain.
> 

- Raw text -


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