delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/20/07:25:59

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Determine Directory for .exe and .obj files
Date: 20 Apr 2000 10:18:46 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 31
Message-ID: <8dmli6$9ih$1@nets3.rz.RWTH-Aachen.DE>
References: <01bfa8a2$f611e740$688b42d8 AT default>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 956225926 9809 137.226.32.75 (20 Apr 2000 10:18:46 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 20 Apr 2000 10:18:46 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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