T thejay2012 macrumors newbie Original poster Aug 21, 2010 #1 Is there any way I can change where g++ compiles to by default?
lee1210 macrumors 68040 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 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. 😉