Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
how to set output file name?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: how to set output file name? (Read 3347 times)
Elena
Multiple posting newcomer
Posts: 49
how to set output file name?
«
on:
March 08, 2021, 12:40:36 am »
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
Logged
oBFusCATed
Developer
Lives here!
Posts: 13413
Re: how to set output file name?
«
Reply #1 on:
March 08, 2021, 01:15:50 am »
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...
Logged
(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
Multiple posting newcomer
Posts: 49
Re: how to set output file name?
«
Reply #2 on:
March 08, 2021, 11:56:54 am »
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
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
how to set output file name?