www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/25/15:32:05

Message-ID: <38DCC276.25A3F3BC@iperbole.bologna.it>
Date: Sat, 25 Mar 2000 14:43:18 +0100
From: Giacomo Degli Esposti <pad2369 AT iperbole DOT bologna DOT it>
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: A simple query
References: <8bha5j$9q4$1 AT nnrp1 DOT deja DOT com>
Reply-To: djgpp AT delorie DOT com

dinsmore7 AT my-deja DOT com wrote:
> 
>    -----------------------------------------------------------------
> 
>  Whilst compiling any program:
>  There ought to be some method of directing any object code files
> or executable files to a specific directory.  Seems this would save
> one from the effort of fishing them out of the "bin" directory.
> Yeah or naaaaaaaay?

Don't worry: there is such a method!

I don't use rhide, so I don't know how to accomplish this, but if you
are using plain makefiles it is possible to specify a full path
for output, like this:

gcc -o c:/myprogs/hello.exe hello.c

BTW, it seems strange that you have to "fish out" from bin directory.
IIRC gcc puts executables in the current directory, so it seems that
you are running gcc from bin directory. Do you put your source
files in bin directory? This is not good practice in general, you'd
better make specific directories for your c files and then
run gcc from within the source directory.

ciao
  Giacomo
 
------------------------------------------------------------------------
Giacomo Degli Esposti                e-mail: pad2369 AT iperbole DOT bologna DOT it 
via Ciamician, 4                          giacomo DOT degliesposti AT optima DOT it
40127 BOLOGNA - Italy

- Raw text -


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