User forums > Using Code::Blocks

Problem with Tool variables

(1/2) > >>

DoMeN:
I want to put output executable file name in Parameters text box in edit tool menu and I tried out all variable names that I found that I thought that would do the trick but unfortunately none of them sim to work  :( I'm not sure if I missed one of the variables or if this is even possible at the moment. I'm using Linux FC5 and I'm not using latest night builds.

tiwag:
you can use the Tools Menu and pass the macros

$(TARGET_OUTPUT_DIR)
$(TARGET_OUTPUT_FILE)


e.g.

Executable: usr/bin/Simulatorxy
Parameters: flags, $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_FILE)


you need to activate the target in order to get the filename

DoMeN:

--- Quote ---you need to activate the target in order to get the filename
--- End quote ---

What do you mean by that? I compile the project and if I write the filename directly in the parameters field it works but if I write $(TARGET_OUTPUT_FILE) instead then it doesn't work. It seems as if this variable would return an empty string.

mandrav:

--- Quote ---if I write $(TARGET_OUTPUT_FILE) instead then it doesn't work
--- End quote ---

Try $([your_target_name]_OUTPUT_FILE) replacing [your_target_name] with, err, your target's name (title, e.g. default).

tiwag:

--- Quote from: DoMeN on October 30, 2006, 03:09:13 pm ---
--- Quote ---you need to activate the target in order to get the filename
--- End quote ---

What do you mean by that?

--- End quote ---

use Menu Build -> Select target ... -> choose your target
or
use the "Build target" dopdown list and select (==activate) your target

Navigation

[0] Message Index

[#] Next page

Go to full version