Mail Archives: djgpp/2001/09/11/04:03:43
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 -