Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1240446
  • 博文数量: 124
  • 博客积分: 7074
  • 博客等级: 少将
  • 技术积分: 1336
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-15 16:37
文章分类
文章存档

2011年(3)

2010年(18)

2009年(8)

2008年(14)

2007年(81)

分类:

2007-10-25 11:02:50

minGW解决Eclispe构建C/C++运行环境
2007-10-25

1.download eclipse Version3.2, org.eclipse.cdt-3.1.2-win32.x86.zip,org.eclipse.cdt.sdk-  3.1.2-win32.x86.zip.
2.install eclipse,cdt plugns......
3.download MinGWStudioFullSetup-2_05 ,then install it;
4.rename C:\MinGWStudio\MinGW\bin\mingw32-make.exe to make.exe.
5.set the path ....,add the direction "D:\MinGW\MinGWStudio\MinGW\bin;".
 
 
forexample
==========
#include 
#include 
using namespace std;

int main()
{
	string yourName;

	cout << "Enter your name: ";
	cin  >> yourName;
	cout << "Hello " + yourName << endl;

	return 0;
}

Save the file

save the main.cpp file by clicking FILE > SAVE, and build your project by typing CTRL+B.You can read through the build messages in the Console view. The project should build successfully, showing the following message:Build complete for project HelloWorld

OK --Bye-Bye
阅读(2379) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~