Mendes
Mendes

Reputation: 18451

Eclipse MARS linux environment usage on include paths

I´m using Eclipse Mars C++ and I need to referente a linux environment variable on my include path.

So, we have in Ubuntu prompt:

$ printenv | grep WORKSPACE
WORKSPACE_HOME=/home/myself/projectA

In Eclipse:

Project->Properties->C/C++ Build->Settings->Tool Settings->Includes->Include Paths:

enter image description here

When compiling, I´m getting:

g++ -std=c++0x _IORKSPACE_HOME/includes

Why is not Eclipse expanding the $WORKSPACE_HOME ?

Help appreciated

Upvotes: 1

Views: 58

Answers (1)

Ugur Ozdemir
Ugur Ozdemir

Reputation: 11

"${WORKSPACE_HOME}/includes" should work.

Upvotes: 1

Related Questions