News:

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

Main Menu

Using a environment global variable outside of default set.

Started by indigo0086, September 24, 2008, 06:54:12 PM

Previous topic - Next topic

indigo0086

for example, I have a set defined as opengl, and a variable called glfw within that set.  Now when I try to set $(#glfw) as my location for glfw when starting a project, it doesn't accept it, but if that variable is defined within the default set, it will accept it.

My question is how do I qualify that the name belongs to that set.  I tried $(#opengl.glfw) but that doesn't work (because that is really reserved for the lib or include subdirectory.

stahta01

Did you change from the default set to your new set?

Change the value in "Current Set" pull-down to the set you wish to use.

FYI: It is best to do this with no projects opened till you figure out the problems of doing it.

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]

MortenMacFly

Quote from: indigo0086 on September 24, 2008, 06:54:12 PM
My question is how do I qualify that the name belongs to that set.  I tried $(#opengl.glfw)
This does not work at all. There is no inheritance/membership for variable sets.

If you need glfw within the default and your opengl set, add it to both.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

indigo0086

But how do I keep it within the opengl set and still call on it when I need it.  As it is it's not recognized in the Opengl set.