Eclipse CDT “Symbol NULL could not be resolved”

后端 未结 13 1842
北荒
北荒 2020-12-06 04:32

I just installed Eclipse CDT with MinGW. All the environment variables are set, includes, etc. Tried running a hello world and everyth

13条回答
  •  没有蜡笔的小新
    2020-12-06 04:46

    Set ${COMMAND} to gcc on Linux

    Under "Preprocessor Include Paths, Macros, etc." and "CDT GCC Built-in Compiler Settings" there is an undefined ${COMMAND} variable if you imported the sources from an existing Makefile project.

    Eclipse tries to run that command to parse its stdout to find headers, but ${COMMAND} is not set by default, and so it is not able to do so.

    I have explained this in more detail at: "Unresolved inclusion" error with Eclipse CDT for C standard library headers

提交回复
热议问题