News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

how to set output file name?

Started by Elena, March 08, 2021, 12:40:36 AM

Previous topic - Next topic

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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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