如何使用Eclipse和CDT用MinGW编译和运行C ++? [英] How to compile and run C++ with MinGW using Eclipse and CDT?

查看:123
本文介绍了如何使用Eclipse和CDT用MinGW编译和运行C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows上使用Eclipse和 CDT 插件进行一些C ++开发。我使用Eclipse Helios SR1并安装了CDT插件。我还安装了 MinGW ,现在我在Eclipse中写了一个简单的Hello World。

I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios SR1 and have installed the CDT plugin. I have also installed MinGW and now I wrote a simple "Hello World" in Eclipse.

hello.cpp

hello.cpp

#include <iostream>
using namespace std;
int main()
{
    cout << "Hello World" << endl;
    return 0;
}



在Eclipse中使用CDT插件和MinGW编译器。如何编译我的程序?

In Eclipse using the CDT plugin and the MinGW compiler. How can I compile my program? And how can I test run the program from within Eclipse?

推荐答案

如何测试在Windows,Linux / Unix,Mac OS X上设置Eclipse CDT 适用于您?

这篇关于如何使用Eclipse和CDT用MinGW编译和运行C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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