News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Correct syntax for built-in fields

Started by johne53, November 15, 2009, 11:07:53 AM

Previous topic - Next topic

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)?

$(#my_proj.lib)

It's in the Wiki, look there: http://wiki.codeblocks.org/index.php?title=Global_compiler_variables

johne53