News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Environment string

Started by johne53, August 24, 2007, 12:53:28 PM

Previous topic - Next topic

johne53

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

Hi johne53,

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

thomas

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."