News:

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

Main Menu

defining your own variables

Started by DoMeN, November 04, 2006, 02:02:48 AM

Previous topic - Next topic

DoMeN

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)

thomas

Yes, under the second tab counting from the right, both in build options and compiler options.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

DoMeN

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 :(

Pecan

#3
Quote from: 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 :(

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.

stahta01

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

DoMeN

#5
QuoteWould 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.

QuoteWhat 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

DoMeN

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