L
L
list_get2016-09-05 09:58:04
Eclipse
list_get, 2016-09-05 09:58:04

How to correctly write the path to the header file in the directive in Eclipse?

Good afternoon.
Some header files have a directive that must contain the path to the header file with the choice of the iar/gnu compiler.
What is the correct path to this file?
The definition of the directive was added to C/C++ general -> path and symbols -> symbols
symbol (directive) value("gnu.h")
before the definition of the directive, the folder with gnu.h was added to inlcude.
When you open project files that contain a directive with gnu.h, you can see that the directive has taken a value and you can open this header file.
But when compiling, arm-none-eaby gives an error
/gnu arm eclipse/build tools/2.6-201507152002/bin/sh: can't open gnu.h: no such
file
${workspace_loc:/${ProjName}/compiler/gnu.h}
With this declaration, the directive was not defined at all.
Can anyone tell me how to correctly write the path to the file in the directive?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
list_get, 2016-09-09
@list_get

You will have to answer yourself,
Add the folder with gnu.h to inlcude C/C++ general -> path and symbols -> includes for gnu C and gnu C++
In C/C++ general -> path and symbols -> symbols add
symbol (directive) value(<gnu.h>)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question