"Unresolved include" errors in c++

2.2k views Asked by At

I'm a new C++ programmer using Eclipse. Eclipse seems to recognize C++: It let me create a new C++ project and understands the syntax. However, whenever I try to #include anything, I get an "Unresolved include" error.

I have CDT installed. I also just installed MinGW and MySys and set the path variables correctly.

It looks like something's still missing from Eclipse though -- when I right click on my project and go to "properties -> C/C++ build -> Settings" all I can access are the "binary parsers" and "error parsers" tabs. The window should look like this...

the settings window

...but I can't see the tool settings, build steps or build artifact tabs.

That's all my research has turned up so far. What should I do next?

1

There are 1 answers

3
Torsten On

Settings on screenshot related to build process. For correct work editor (autocomlete, includes) you need to set same dirs in the C/C++ General/Paths and symbols, includes, GNU C++. Also, if path variable containt dir with g++ ecplise should to have prepared configuration if you choose mingw toolchain while creating project.

Update for comment Eclipse C++ include settings