This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do I get the value of a project variable, e.g. PROJECT_ROOT?

Guru 20045 points

Hello,

How do I get the value of a project variable, e.g.  PROJECT_ROOT?

The include file path is using it, but I didn't see it defined in the project setting's Linked Resources->Path Variables.

I am asking this question because my project has several redefinition compilation errors; however, the variables are just defined once.  I just imported the project into another workspace, so that could be causing the issue.

Stephen

  • Ok. I found the problem with the variable redefinition.  I was assigning an extern variable a value.

    However, I'd still like to know where PROJECT_ROOT is defined.  Why doesn't it show up in project setting's Linked Resources->Path Variables list?

    Thanks,

    Stephen

  • stevenh said:
    However, I'd still like to know where PROJECT_ROOT is defined.

    This is a build variable. It will be visible under Project Properties->Build->Variables tab. Be sure to check the box for "Show system variables".