LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Saving gcc output files to new directory (https://www.linuxquestions.org/questions/programming-9/saving-gcc-output-files-to-new-directory-121570/)

Fe98 12-01-2003 07:12 AM

Saving gcc output files to new directory
 
I'm running "g++ -fprofile-arcs -ftest-coverage /root/temp/wizard.cpp"

How do I redirect all the files it creates (e.g. the object file, etc) into a differennt folder (other than the current one - /root/temp). Say, for example, how do I get it to save the files in /root/temp1

Skyline 12-01-2003 07:29 AM

add

-o /root/temp1/executable_name

Fe98 12-03-2003 02:50 AM

thanks man

Fe98 12-08-2003 07:18 AM

slight problem, all i'm getting is the executable in the folder i specify, as opposed to all the other files (object files).....how do i change that as well?


All times are GMT -5. The time now is 02:41 AM.