[英]I use Eclipse Luna and I'm trying out C++, why does it give me errors when I see people doing it fine?
I use Eclipse Luna and I'm trying out C++, why does it give me errors when I see people doing it fine? 我使用Eclipse Luna,并且正在尝试C ++,当我看到人们做得很好时,为什么它会给我错误? I have it set to C/C++, I'm using a C++ project and I have this code:
我将其设置为C / C ++,我正在使用C ++项目,并且我有以下代码:
#include <iostream>
int main()
{
std::cout << "Hello World!";
}
That's the standard C++ 'Hello World!' 这就是标准的C ++“ Hello World!” program.
程序。
I don't have much experience with C/C++ and I don't know why Eclipse is giving me these errors: 我没有使用C / C ++的丰富经验,也不知道Eclipse为什么给我这些错误:
Errors (2 items) 错误(2个项目)
Program "make" not found in PATH 在PATH中找不到程序“ make”
Symbol 'cout' could not be resolved 符号“ cout”无法解析
It seems you will need to install a compiler and GNU Make. 看来您需要安装编译器和GNU Make。 There is a Guide on Code Project under "Additional tools required for CDT" that will walk you through the process.
在“ CDT所需的其他工具”下有一个关于代码项目的指南 ,它将指导您完成该过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.