Code::Blocks Forums

User forums => Help => Topic started by: indigo0086 on September 24, 2008, 06:54:12 pm

Title: Using a environment global variable outside of default set.
Post by: indigo0086 on September 24, 2008, 06:54:12 pm
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.
Title: Re: Using a environment global variable outside of default set.
Post by: stahta01 on September 24, 2008, 07:58:12 pm
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
Title: Re: Using a environment global variable outside of default set.
Post by: MortenMacFly on September 24, 2008, 07:59:34 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.
Title: Re: Using a environment global variable outside of default set.
Post by: indigo0086 on September 24, 2008, 08:08:26 pm
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.