Author Topic: Using a environment global variable outside of default set.  (Read 3494 times)

Offline indigo0086

  • Almost regular
  • **
  • Posts: 150
Using a environment global variable outside of default set.
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Re: Using a environment global variable outside of default set.
« Reply #1 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
« Last Edit: September 24, 2008, 08:00:23 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Using a environment global variable outside of default set.
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline indigo0086

  • Almost regular
  • **
  • Posts: 150
Re: Using a environment global variable outside of default set.
« Reply #3 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.