I used Eclipse for Java development before, so I decided to try it with C++. After setting up my project in CDT, I had errors everywhere saying "Type so-and-so could not be resolved". I decided to make a test Hello World project, and got similar errors with anything else I added to it. For example:
Strangely enough, adding the scope resolution operator makes the error disappear and it works normally. I haven't done anything strange to the IDE; this is its out-of-box behavior on my system. Any idea what's wrong?