|
Re: including files from a C library [message #1822866 is a reply to message #1822553] |
Mon, 16 March 2020 08:16 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You have to tell two different things where your headers can be found:
- the compiler via the makefile
- the CDT Indexer
They are independent.
To do (1) Set the include path for each compiler at:
Project --> Properties --> C/C+ Build --> Settings --> Tool Settings tab --> <compiler> --> Includes
This only works when Eclipse is generating the Makefile.
To do (2) Set the include path as a User Entry at:
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries tab --> <language>
From your images, the include path for the clock header appears to be
<workspace dir>/ksdk_platform_lib_K64F12/platform/clock/system
Where: <workspace dir> is the absolute path to your workspace
You can use the workspace drop down (or button depending on which dialog) to select subdirectories in your workspace.
The library path appears to be:
<workspace dir>/ksdk_platform_lib_K64F12/debug
ksdk_platform_lib_K64F12 appears to be a project in your workspace.
As a side-note:
the second entry for lib searches starting with $(ProjDirPath)/Proj_Settings ...
doesn't contain a library from what I can see.
It doesn't hurt to keep it but it's useless and can be removed.
[Updated on: Mon, 16 March 2020 08:22] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04145 seconds