www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/11/04:03:43

Date: Tue, 11 Sep 2001 10:01:08 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: disco stu <duffman91 AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Rhide make directory
In-Reply-To: <OE26CWwF5qmwyNAsmcH000054f0@hotmail.com>
Message-ID: <Pine.SUN.3.91.1010911100026.2127J-100000@is>
MIME-Version: 1.0
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

On Mon, 10 Sep 2001, disco stu wrote:

> I've read the faq's =
> and i cant find any way to make my *.exe's be made into any directory =
> other than c:\djgpp\bin\

Did you read section 22.1 of the FAQ?  I think it directly addresses
this problem.

> Now my question is: Is there any way to =
> change the directory where compiled exe's are sent? Something along the =
> lines of me being able to send the exe's to c:\temp\ for example? I've =
> tried with Emacs and with Rhide and havent had any success with either. =

The compiler accepts the "-o <output-file>" option, so, for example:

    gcc -o c:\temp\foo.exe foo.c

will put the executable where you want it.  With Emacs, simply type
this command when the `compile' command prompts for a command line.
With RHIDE, the best way is to start RHIDE from the directory where
you want the program, but there's probably some option to do that as
well (I don't use RHIDE myself).

- Raw text -


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