Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Build a project(How to build a third-party project)
Build a project [message #1817797] Fri, 29 November 2019 04:44 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:unmanaged make files project howto
Next Topic:move tab with keyboard
Goto Forum:
  


Current Time: Sat Jun 21 05:00:35 EDT 2025

Powered by FUDForum. Page generated in 0.04255 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top