Mail Archives: djgpp/2000/03/25/15:32:05
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 -