How to solve "Unresolved inclusion: <iostream>" in a C++ file in Eclipse CDT?

Adam Sh picture Adam Sh · Apr 29, 2012 · Viewed 135.8k times · Source

I download eclipse for c++ (cdt-master-8.0.2.zip).

When I write:

#include <iostream>

It marks:

Unresolved inclusion: <iostream>

How can I fix it?

Answer

Alan CN picture Alan CN · Jan 31, 2014

Go to Project > Properties > C/C++ General > Preprocessor Includes... > Providers and select "CDT GCC Built-in Compiler Settings".