Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Internal Builder customized command line
Internal Builder customized command line [message #809368] Tue, 28 February 2012 19:56
Sam Hain is currently offline Sam HainFriend
Messages: 2
Registered: February 2012
Junior Member
In the Eclipse, C/C++ Build -> Settings -> Tool Settings -> C++ Compiler, there is an "expert settings" option that defaults to the following

${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}

This places my built object files into a directory structure similar to my code:

src
----common
----etc
----etc2

I would like all of the object files to go to a single directory.

The variable ${OUTPUT} is the fully referenced name of the file being compiled( e.g. src/common/MyClass.o ). Is there a variable, or some way, to get just the name of the output file? I'm looking to do something like this:

${COMMAND} ${FLAGS} ${OUTPUT_FLAG} objects\${OUTPUT_PREFIX}${OUTPUT_FILENAME_ONLY} ${INPUTS}

Previous Topic:g++ Linking problem
Next Topic:How to customize C Compare Viewer?
Goto Forum:
  


Current Time: Tue Sep 24 10:18:43 GMT 2024

Powered by FUDForum. Page generated in 0.04134 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top