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:

${env_var:ENV_VAR}  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 MYSTUFF=c:\path\to\mystuff and you wanted to add 'MY_STUFF/includes' to your include paths you would use "${env_var:MY_STUFF}/includes"

in your Directories setting, which would expand to:

c:\path\to\mystuff/includes

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

Alternatively...

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)