Eclipse indexing not working

前端 未结 13 2400
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-07 02:20

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

13条回答
  •  我在风中等你
    2021-02-07 02:48

    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:


    1. The CDT Arm Cross GCC Built-in Compiler Settings didn't have the path to the compiler.

    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.


    1. Missing symbol in the 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! :)

提交回复
热议问题