User forums > Using Code::Blocks
how to set output file name?
(1/1)
Elena:
In project/targets options/build targets I can enter an output filename. Which format should I use to have the output filename corresponding to the project name ? Eg if my project is named Test I want the object being named eg. Test.dll. i tried bin\release\$(TARGET_OUTPUT_BASENAME).dll but if I do so the next time I open the project CB freezes and I have to ask windows to abort it the hard way (a bug ?). Thx
oBFusCATed:
Can you provide minimal project which reproduces the freeze?
But I suppose you've created an infinite loop, because TARGET_OUTPUT_BASENAME has the value you've already set :)
Here is the list of all variables: http://wiki.codeblocks.org/index.php/Variable_expansion
I guess you need PROJECT_NAME...
Elena:
Thanks PROJECT_NAME works :)
Perhaps a check should be made against such recursive situations though...
Sorry but I am quite new and ignored the vars
However it can easily be reproduced with any project it seems
Navigation
[0] Message Index
Go to full version