Build a project [message #1817797] |
Fri, 29 November 2019 04:44  |
Eclipse User |
|
|
|
Hi all,
I'm Eclipse new user, and I have to learn lot of things !
I would like to build a downloaded project, but i have some trouble with files inclusion. I'm unable to solve It so project can't works.
I have download a Freertos demo at stf12.net/developer-sw-fw/eclipse-demo#TOC-Download
demo_src_v2.8.zip
After unzipping, I have imported the eclipse project RTOSDemo. I've tried a buid, consol told me, cs-make wasn't found so I installed MingGW GCC and put the bin folder path into the path. => OK
Then, i tried a build. The file FreeRTOS.h wasn't found however it's inside demo project folders. I add a link into "Linked ressources" to the folder ROOT FreeRTOS. But That's the same, FreeRTOS.h wasn't found like other files... However all these files are in the folder.
Is there a way to give the instruction to eclipse to look inside the entire folder for included files ?
Thanks for your help
|
|
|
Re: Build a project [message #1817818 is a reply to message #1817797] |
Fri, 29 November 2019 10:27  |
Eclipse User |
|
|
|
If you are using a Managed Build project (Eclipse manages the makefile)
and the includes are separate from the source then you have to tell Eclipse where it is.
You need to tell Eclipse how to tell the compiler where they are with
Project --> Properties --> C/C++ Build --> Settings -> Tool settings tab --> <compiler> --> Includes
And you need to tell the Indexer:
There are a number of ways of doing this but I generally use
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Entries tab
And add the directory(ies) where the headers can be found.
You can accomplish both with
Project --> Properties --> C/C++ General --> Paths and Symbols
|
|
|
Powered by
FUDForum. Page generated in 0.04255 seconds