I just installed Eclipse CDT with MinGW.
All the environment variables are set, includes, etc. Tried running a hello world and everyth
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.