|
Re: Paths and Symbols - relative shortfalls [message #1744741 is a reply to message #1744673] |
Thu, 29 September 2016 19:19 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You need to understand that any relative path used by make must be relative to the make working directory when make is run.
To get an idea how that works look at how the source is referenced by the makefile in a configuration directory (like Debug).
For the Debug configuration, make will execute in directory <project path>/Debug
It will include <project path>/Debug/src/sources.mk
A typical source reference within sources.mk might be: ../src/Hello.cpp
Which in practice means <project path>/Debug/../src/Hello.cpp
However, the definition in Paths and Symbols should be relative to the workspace unless absolute.
For relative paths within the project, it would be best to use the Workspace... button.
You might also want to check if ${PROJECT_LOC} is actually defined.
In my installation, it is not. The closet thing is ${ProjDirPath}.
The variables are defined in Project --> Properties --> C/C++ Build --> Variables
A list of them is available in the drop down list obtained when pressing the Variables... button.
Edit: minor corrections
[Updated on: Thu, 29 September 2016 20:44] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Paths and Symbols - relative shortfalls [message #1744802 is a reply to message #1744797] |
Fri, 30 September 2016 10:04 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
I dunno. I was able to see and select every folder in all of the projects in my workspace with the exception of folders excluded from builds.
Are you trying to get to a folder that is outside of the workspace? Making a relative path to it assumes the project will always have the same relative location to it. Maybe not the best idea. Would be better if the project contained a link to it.
[Updated on: Fri, 30 September 2016 10:09] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03962 seconds