简体   繁体   English

Eclipse 用于 C++ Windows 7 64 位 PC

[英]Eclipse for C++ Windows 7 64-bit PC

I am using 64-bit Windows 7 PC and I want to develop C/C++ programs using Eclipse IDE .我正在使用64 位 Windows 7 PC我想使用 Eclipse IDE 开发 C/C++ 程序

I have tried DOSBox but it was not working for me.我已经尝试过 DOSBox ,但它对我不起作用 Also, I din't liked it as well.另外,我也不喜欢它

I just want to use Eclipse for the same.我只想使用 Eclipse 来做同样的事情。 I tried using CDT Plugin in Eclipse but that doesn't worked.我尝试在 Eclipse 中使用 CDT 插件,但这不起作用。

When I create a new C++ project, there are different Tool Chains available - Cross GCC, Microsoft Visual C++, MinGW GCC . When I create a new C++ project, there are different Tool Chains available - Cross GCC, Microsoft Visual C++, MinGW GCC . I really don't know what exactly it is.我真的不知道它到底是什么。 I tried all but I am getting error and snapshot attached:-我尝试了所有但我收到错误和附加快照: -

Basically, it is not able to detect what iostream, stdio, cout is.基本上,它无法检测 iostream、stdio、cout 是什么。

在此处输入图像描述

I tried different solutions available on other posts but none worked for me.我尝试了其他帖子上可用的不同解决方案,但没有一个对我有用。

I don't know what to do with it.我不知道该怎么办。 I know I am having problem due to 64-bit Windows but I want to fix this now.我知道由于 64 位 Windows 而出现问题,但我现在想解决这个问题。 Please help!请帮忙!

You need to install MinGW, and then select the MinGW toolchain when selecting a new project.选择新项目时需要安装MinGW,然后select MinGW工具链。

Well I tried different tool chains on Eclipse IDE, but nothing worked.好吧,我在 Eclipse IDE 上尝试了不同的工具链,但没有任何效果。 Then I installed CodeBlocks IDE and plugins for the same as well.然后我也安装了 CodeBlocks IDE 和插件。

Sic: Now, I am running C/C++ codes on Code Blocks perfectly. Sic:现在,我可以完美地在 Code Blocks 上运行 C/C++ 代码。

You need to download MinGW and install the C++ compiler, don't forget to add the MinGW bin to the system variables under "path".您需要下载MinGW并安装 C++ 编译器,不要忘记将 MinGW bin 添加到“路径”下的系统变量中。

I recommend you using Visual Studio Code.我建议您使用 Visual Studio Code。 If you do install Visual Studio Code, make sure to install Code Runner plugin to make running C++ projects easier.如果您确实安装了 Visual Studio Code,请确保安装 Code Runner 插件以更轻松地运行 C++ 项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM