Eclipse CDT “Symbol NULL could not be resolved”

后端 未结 13 1840
北荒
北荒 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:56

    I had the same problem: my makefile was running fine but I was getting errors like yours from the Eclipse CDT view.

    I closed the current project, I opened a new "Makefile project with existing code" , specifying the right location source location of my project. After this, I checked that: right click project / C++ general / Paths and symbols / Gnu C++ / include directories is not empty and includes the correct paths of my project.

    Then, I rebuilt the index (right click / index / rebuild).

    Also, I use Eclipse CDT 7 and not Eclipse CDT 8 because CDT8 sometimes gives me compile errors from the GUI that I could not solve, eventhough the makefile was fine.

提交回复
热议问题