LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-01-2003, 08:12 AM   #1
Fe98
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 49

Rep: Reputation: 15
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
 
Old 12-01-2003, 08:29 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
add

-o /root/temp1/executable_name
 
Old 12-03-2003, 03:50 AM   #3
Fe98
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 49

Original Poster
Rep: Reputation: 15
thanks man
 
Old 12-08-2003, 08:18 AM   #4
Fe98
Member
 
Registered: Sep 2003
Distribution: RH9
Posts: 49

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving the output of a file as a variable mrobertson Programming 5 07-08-2005 01:43 AM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 07:09 AM
Want P4, SSE2 output from 386 GCC Wondre Programming 2 01-09-2003 12:03 PM
output in graphic mode with gcc Rex_chaos Programming 9 05-13-2002 10:56 AM
output in graphic mode with gcc Rex_chaos Linux - General 6 05-12-2002 04:53 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration