Author Topic: Environment string  (Read 3047 times)

Offline johne53

  • Regular
  • ***
  • Posts: 253
Environment string
« on: August 24, 2007, 12:53:28 pm »
I'm not sure if "environment string" is the correct expression but here's what I'd like to do.... Let's say that the path to one of my projects is this:-

/SomePath/MyProjects/SomeProject

I'd like to set up a string that can represent that path. If the string was called $PROJECT_ROOT then, to access my project's 'include' folder, I'd type $PROJECT_ROOT/include/

Or for my 'lib' folder I might type $PROJECT_ROOT/lib/

It looks like this kind of thing is possible with C::B. Indeed, there might already be such a variable set up. Does something like this already exist? Also, how do I create my own environment strings?

mariocup

  • Guest
Re: Environment string
« Reply #1 on: August 24, 2007, 01:50:29 pm »
Hi johne53,

the available CB variables are documented in http://www.codeblocks.org/manual.shtml or the wiki page of codeblocks.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Environment string
« Reply #2 on: August 24, 2007, 05:25:20 pm »
Hmm... I'd rather refer to the Wiki article(s) instead.
The information in the Wiki is always up-to-date and correct.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."