Alex Rivera | Logout

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

Asked 2012-04-29T16:28:04.683
76

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?

Edit
Report

1 Answer

13

Make sure that your file has .cpp extension and not .c, I just had this problem

answered 2012-11-15T16:30:08.880

Your Answer