方法如下:
1.下载安装GO的包
2.设置环境变量
在“我的电脑”中配置GO的环境变量:
2.1新建环境变量 GOROOT,值为所解压的GO的根目录
2.2在PATH环境变量中添加GO的bin
2.3打开cmd命令行,输入 go。如果配置正确,则会有帮助提示。
3.设置eclipse安装go插件
3.1安装go的eclipse插件
在eclipse的help-》install new software-》add-》添加go插件的安装地址即可
1,先装好java
2,装好eclipse3.32+mingw1
3,打开cdt包把plugins和features拷到eclipse相应的目录里
4,把eclipse的configuration目录下的org.eclipse.update删了
5,启动eclipse,现在可以建立c/c++工程了
6,现在建立你的c/c++工程
7,编写好你的源代码
8,在project的properties新建一个builder(project→properties选择builder标签
→new,双击program)
9,在main标签(不用点击,默认第一个就是)的location输入你mingw的make路径,
如c:\mingw\bin\mingw32-make.exe
在working directory输入你project的makefile文件所在的目录,如
d:\workspace\test
点apply更新进去,一直点ok退回编辑界面
10,建立文件makefile,不用加后缀名,输入 all(你设置的标签名): gcc -o 你的程序名 你的源代码名.c
注意:g++前面是用tab而不能用空格。上面编译的是c,编译c++要用g++ -o hello
hello.cpp
设定make targets,windows->show view->make targets。在make targets视窗中按下右键,选择add build target,target name输入:编译,make target输入:all(你设置的标签名)。双击编译即可完成编译。
Photoshop|
Dreamweaver|
SVG|
WebGL|
Visual Studio|
PowerDesigner|
Eclipse|
Git|
Apache Ant|
Atom|
Composer|
CodeSmith|
Flex|
Gradle|
Maven|
Sublime Text3|
SVN|
Tableau|
Vim|
Chrome开发者工具|
OpenGL|
Unity|
Direct3D|
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
长的帅免费日