Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: johne53 on August 24, 2007, 12:53:28 pm

Title: Environment string
Post by: johne53 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?
Title: Re: Environment string
Post by: mariocup 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.
Title: Re: Environment string
Post by: thomas 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.