User forums > Using Code::Blocks
Correct syntax for built-in fields
(1/1)
johne53:
Suppose I've defined a global variable (within the C::B IDE) and called it "my_proj". I've defined its 'base' property to be "F:\My_Project". The setup dialog for this variable contains several other "built-in field" properties such as "lib", "obj" and "include". Suppose I define "lib" to be "F:\My_Project\libs".
I can use the global variable my_proj (well, technically, my_proj:base) by referring to it in my project as $(#my_proj)
But what is the syntax if I want to use "F:\My_project\libs" (in other words my_proj:lib)?
Vuki:
--- Quote from: johne53 on November 15, 2009, 11:07:53 am ---But what is the syntax if I want to use "F:\My_project\libs" (in other words my_proj:lib)?
--- End quote ---
$(#my_proj.lib)
It's in the Wiki, look there: http://wiki.codeblocks.org/index.php?title=Global_compiler_variables
johne53:
Yes, it works. Thanks Vuki.
Navigation
[0] Message Index
Go to full version