简体   繁体   English

我使用Eclipse Luna,并且正在尝试C ++,当我看到人们做得很好时,为什么它会给我错误?

[英]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.

相关问题 C ++递归段错误。 你能帮我看看我做错了什么吗? - C++ recursion segfault. Can you help me see what I'm doing wrong? C ++:当我要输入“ q”退出时,为什么这会给我引发异常抛出错误? - C++: Why does this give me an exception thrown error when I want to enter 'q' to quit? 有人可以向我解释在 C++ 中创建列表时我在做什么吗? - Can someone explain to me what I'm doing when creating a list in C++? 为什么这个 C++ 代码打印出长度为 5 并且当我打印出字符串时程序会自动终止? - Why does this c++ code print out length 5 and when i'm print out string the program is automatic terminate? 我正在尝试使用stoi(),但是编译器正在尝试给我替换品,并且不会编译 - I'm trying to use stoi(), but the compiler is trying to give me replacements and won't compile 使用此代码时,我总是收到错误消息。 我正在尝试在继承的类中使用构造函数。 C ++ - I keep getting an error when I use this code. I'm trying to use constructors in an inherited class. c++ c + +:我如何获得日食给我更多的信息,而不是“语法错误” - c++: how do i get eclipse give me more info than “Syntax Error” 为什么在我使用类型强制转换的地方给我输出2? - Why does give me output 2 where i'm used type cast? 为什么我尝试使用读写时 fstream 无法正常工作? - Why does fstream not working correctly when I'm trying to use read and write? 当我使用 itk 读取“.nii.gz”文件时,reader-&gt;update 给我一个 microsoft c++ 错误 - when i use itk to read '.nii.gz' file ,reader->update give me a microsoft c++ error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM