How to make Eclipse CDT's Linux GCC toolchain resolve C++ standard library headers?
Posted
by
Muhammad Khan
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Muhammad Khan
Published on 2012-06-13T01:06:19Z
Indexed on
2012/10/24
5:27 UTC
Read the original article
Hit count: 466
In Ubuntu 12.04 LTS I installed the Eclipse CDT plugin and opened the new hello world project to just test everything out. When I was creating the project, I chose the only toolchain: "Linux GCC"
When the project is created, however, it says that
#include<iostream>
#include<cstdlb>
are unresolved. Thus, lines with cout
and endl
can't be used and it cannot find std
.
using namespace std;
is also causing problems.
How can I get my #include
directives for standard library headers recognized, to support code using the std
namespace?
© Ask Ubuntu or respective owner