|
|
Re: Preprocessor Include Paths, usage of include directories [message #1712721 is a reply to message #1712429] |
Tue, 27 October 2015 13:01  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03708 seconds