|
Re: Eclipse CrossCompile include issues [message #1792843 is a reply to message #1792692] |
Wed, 25 July 2018 03:29 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Perhaps the problem is using the LInaro toolchain but your system header files were designed for GCC?
Does the Linaro toolchain allow finding the system files?
The GCC builtins provider in
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Providers tab
has ${COMMAND} -std=c++11 ${FLAGS} -E -P -v -dD "${INPUTS}"
Your toolchain might have similar capabilities.
In addition to system header file paths (there are a lot more than /usr/include), there are many macro definitions.
These are used in the header files.
Also:
Boost, in particular, is not completely header only.
boost/filesystem is one of these (or once was) and needs (or did need) BOOST_ALL_DYN_LINK.
It's doubtful that dynamic link libraries built for x86 processors running linux will work in your ARM.
You probably will need to compile them specifically for your target processor.
---
That said, you shouldn't need to add every subdir in /usr/include/boost.
In fact, you shouldn't need to add /usr/include/boost if you have /usr/include.
Maybe all you need is to rebuild the index.
You may need to generate a parser log: Project --> C/C++ Index --> Create Parser Log File
Reading one is tedious but may offer a clue as to why the indexer can't find the headers.
Try changing the toolchain to GCC and see if the problem persists.
If that fixes it then maybe you can use the GCC builtins provider.
FYI: The indexer uses Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc.
You will need the Managed Build Setting provider to copy the the entries in Paths and Symbols to the Discovery page.
Project --> Properties --> C/C++ General --> Preprocessor Include Paths, Macros etc. --> Providers tab --> CDT Managed Build Setting Entries
Sounds like it's already enabled.
[Updated on: Wed, 25 July 2018 03:51] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04909 seconds