如何在Windows中的Eclipse上设置C / C ++? [英] How do I set up C/C++ on Eclipse in Windows?

查看:75
本文介绍了如何在Windows中的Eclipse上设置C / C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在Windows(8,yikes)笔记本电脑上进行了Eclipse的默认Java(8)安装,所以看起来工作正常。但是,我不像使用C和C ++那样擅长Java,对于某些工作,使用C / C ++比使用Java更快捷。

I just did the default Java (8) installation of Eclipse on my Windows (8, yikes) laptop, and it seems to work just fine. However, I'm not as good at Java as I am with C and C++, and for some work it's more expeditious to use C/C++ than Java.

不幸的是, Windows的Eclipse安装程序并不容易为C / C ++设置Eclipse。看起来我对Linux或BSD没问题,但是随后我不得不重新组装另一台笔记本电脑(因为我需要移动性),然后在上面安装Linux或BSD。是的,我需要将Windows留在这台计算机上,所以Windows的讨厌不会对我有帮助。

Unfortunately, the Eclipse installer for Windows doesn't make it very easy to set up Eclipse for C/C++. It looks like I'd be fine with Linux or BSD, but then I'd have to scrounge up another laptop (because I need the mobility) and install Linux or BSD on it. Yes, I need to leave Windows on this machine, so Windows hate isn't going to help me.

我的懒惰网络搜索出现了这篇文章: 在Windows 7 64位版上安装Eclipse进行C ++开发。是否有比这更好的安装指南,还是有人愿意详细描述该过程?

My lazy web search turned up this article: "Install Eclipse for C++ Development on Windows 7 64-bit". Is there a better installation guide than that, or does anyone care to describe the process in more detail?

推荐答案

即使您有如果安装了CDT功能,则需要为Windows(如MinGW或Cygwin)安装GCC编译器。安装它们后,在安装路径中将 bin文件夹添加到环境变量中,然后重新启动eclipse。现在,当您选择创建新的C项目时,应该会看到MinGW编译器。完成此步骤后,继续执行C程序,这将解决您的问题。

Even though you have CDT features installed, you need to install a GCC compiler for windows such as MinGW or Cygwin. Once you install them, add the 'bin' folder in the installed path to the environment variables and then restart eclipse. You should now see MinGW compiler when you select "Create new C Project". After this step, proceed with your C programs and this should resolve your problems.

这篇关于如何在Windows中的Eclipse上设置C / C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆