I am using CDT in Eclipse 3.5.2 Galileo in Ubuntu.
My eclipse\'s indexer doesn\'t work at times. By that I mean when I ctrl
click a function it says
Just came across the same problem in my C++ ARM Cross GCC project. I'm developing on Windows, using Makefile and an Ubuntu Docker image with GNU ARM Embedded Toolchain to build the project.
The solution to get rid of the unresolved symbols, in my case, could be divided into two parts:
In the Project Properties -> C/C++ General -> Preprocessor Include Paths -> Providers(tab)
the path to the compiler must be provided.
Using the GNU ARM Embedded Toolchain, the entry for the Command to get compiler specs: I currently use is:
C:\GNU_Arm_Embedded_Toolchain\9-2020-q2-update\bin\arm-none-eabi-g++.exe ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"
Note: Yes, I am having installed the same toolchain on my Windows machine as I'm using in the Docker image.
To verify, that the call is correct, you can tick the Allocate console in the Console View, which will provide hlepful output to the Console. Also, in the Entries tab, when you unroll the CDT Arm Cross GCC Built-in Compiler Settings you should see the includes and symbols included.
Project Properties -> C/C++ General -> Paths and Symbols
menu.As I have my defines in the Makefile, I forgot to add the define of my MCU also here.
Hope this helps to someone! :)