User forums > Using Code::Blocks

Environment string

(1/1)

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.

Navigation

[0] Message Index

Go to full version