T thejay2012 macrumors newbie Original poster Jun 7, 2009 9 0 Aug 21, 2010 #1 Is there any way I can change where g++ compiles to by default?
lee1210 macrumors 68040 Jan 10, 2005 3,182 3 Dallas, TX Aug 21, 2010 #2 I'd alias g++ -o /my/dir/ to a short command. Or just always compile from the desired directory. Or use a makefile. -Lee
I'd alias g++ -o /my/dir/ to a short command. Or just always compile from the desired directory. Or use a makefile. -Lee
chown33 Moderator Staff member Aug 9, 2009 11,462 9,710 A sea of green Aug 21, 2010 #3 The -o option specifies an output pathname. That pathname can contain a directory. http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/gcc.1.html Or maybe I don't understand the question, and you can clarify. EDIT: ..and Lee wins by a nose.
The -o option specifies an output pathname. That pathname can contain a directory. http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/gcc.1.html Or maybe I don't understand the question, and you can clarify. EDIT: ..and Lee wins by a nose.