Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: DoMeN on November 04, 2006, 02:02:48 am

Title: defining your own variables
Post by: DoMeN on November 04, 2006, 02:02:48 am
Is it possible to define your own variabls in code::blocks that vould be used in Tools and that would have to be defined in every project with a different string?
Something like: $(VAR) = /path/path
Tools: parameters: $(VAR)
Title: Re: defining your own variables
Post by: thomas on November 04, 2006, 02:17:36 am
Yes, under the second tab counting from the right, both in build options and compiler options.
Title: Re: defining your own variables
Post by: DoMeN on November 04, 2006, 02:30:08 am
If you meen Settings->Compiler and debuger->Costum variables?
If I add a variable in there then when I press the button Ok in "Compiler and debuger settings" form than code::blocks terminates :(
Title: Re: defining your own variables
Post by: Pecan on November 04, 2006, 04:02:40 am
If you meen Settings->Compiler and debuger->Costum variables?
If I add a variable in there then when I press the button Ok in "Compiler and debuger settings" form than code::blocks terminates :(

Works for me: Version 1.0 revision 3139 (2006-10-24 08:52:45)   gcc 3.4.4 Windows/unicode

Would you please mention in your messages the full CodeBlocks version you're using and the system you're running.
You can find this info in the menu item Help/About/Information. Or, with a double click, copy the "Start Here" page "Version" banner to the clipboard.
Title: Re: defining your own variables
Post by: stahta01 on November 04, 2006, 04:04:55 am
What is the name of the custom variables? You may be picking one that causes it to crash. Also, what is the value?

Tim S
Title: Re: defining your own variables
Post by: DoMeN on November 06, 2006, 08:17:36 am
Quote
Would you please mention in your messages the full CodeBlocks version you're using and the system you're running.
I have code::blocks 1.0 rev. 2836 (2006-08-11) Linux/unicode and am using Linux Fedora Core 5.

Quote
What is the name of the custom variables?
It crashes for every variable name and every directory path.

Do you know if it is possible to get a newer version of c::b for FC5? I tried to compile a night build a while ago but I was unsuccessful so I'd need a version that is alredy  built for FC5.

If I trie to install a RPM with command "rpm -Uvh name_of_the_night_build_file" all I get are this three errors:
error: open of <!DOCTYPE failed: No such file or directory
error: open of HTML failed: No such file or directory
error: open of PUBLIC failed: No such file or directory
Title: Re: defining your own variables
Post by: DoMeN on November 06, 2006, 12:02:42 pm
It works now but no one wrote that I should write variable name without $( ). When I write key without this it works fine but with $ it crashes the c::b  :? Maby I overlooked this somewhere but I think that this should also be writen in the menu. Tnx for your help  :D