|
Re: Preprocessor Include Paths, usage of include directories [message #1712464 is a reply to message #1712429] |
Sun, 25 October 2015 13:16 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
You can edit the tool chain at: Project ==> Properties ==> C/C++ Build ==> Tool Chain Editor
But since you have selected no tool chain there won't be much to edit as you've pretty much said you will take control of everything including providing a make file.
See: http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop_build_toolchain.htm
But, you can select a new chain there.
Without a tool chain, what Eclipse thinks which compiler is being used is not important except for parsing error messages. The tool chain is mostly for getting Eclipse to build a makefile. When creating a project it also causes some property values to be set.
Note that there are no include paths in the image you provided.
Even if you add the proper path, the indexer needs to be run. You can force it with Project ==> C/C++ Index ==> Rebuild.
Without a tool chain, it's not clear (to me) if the indexer ever gets run. is it enabled? Check: Project ==> Properties ==> C/C++ General ==> Indexer
[Updated on: Sun, 25 October 2015 13:24] Report message to a moderator
|
|
|
Re: Preprocessor Include Paths, usage of include directories [message #1712721 is a reply to message #1712429] |
Tue, 27 October 2015 17:01 |
Tauno Voipio Messages: 742 Registered: August 2014 |
Senior Member |
|
|
Herman Reintke wrote on Sat, 24 October 2015 13:12LS,
Questions :
- Can I, and if yes how, update the Cross GCC compiler actually used with Cross GCC toolchain
- How can I make the indexer correctly pick up the *.h files from the directory in Preprocessor Include Paths with No Toolchain
Here are my settings for Cortex-M4, modify to suit yours:
Preprocessor Include Paths, Macros etc:
Providers
Remove check from CDT Cross GCC Builtin Settings
This gets rid of i386/i686 stuff
Entries / GNU C
CDT User Setting Entries
Add /usr/lib/arm-none-eabi/include
Add /usr/lib/gcc/arm-none-eabi/4.8.2/include
Add /usr/lib/gcc/arm-none-eabi/4.8.2/include-fixed
Add paths to your own header directories
Paths and Symbols
Include files
Add cortexm4-predef.h
The target processor predefine header file is generated
by the GCC in use:
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -E -dM </dev/null >cortexm4-predef.h
The Project properties page wants to re-index after changes, let it do so.
--
Tauno Voipio
|
|
|
Powered by
FUDForum. Page generated in 0.02628 seconds