**** Advance Notice ****

This site will be closed on 31 December 2015,

Important Information for users of NXP LPCXpresso

This site is for users of Code Red branded products.

NXP LPCXpresso users should visit the LPCXpresso FAQ's for up-to-date information relevant to that product.

Using enviroment variables in project settings

If you want to setup an environment variable for your include or library paths, you can use the following syntax where you would specify the path:


to expand the value of the environment variable ENV_VAR. If the environment variable does not exist. it is replaced by an empty string.

Thus, if the environment variable was set as follows


and you wanted to add 'MY_STUFF/includes' to your include paths you would use


in your Directories setting, which would expand to:


Note that either '/' or '\' can be used as path seperators.


In most circumstances it may be more sensible to create, for example, a library project within your workspace to contain files that you might otherwise reference using environment variables. For details of how to reference files in library projects, please see the FAQ Using library projects from your own projects.

UsingEnvironmentVariables (last edited 2013-06-03 13:17:19 by CrSupportAb)