GEMINIGHT 警告:您的浏览器不支持JavaScript将无法正常浏览!
Warning: Your browser does not support JavaScript!
📋注册(Register) | 📛登录(Login)
🎲

主站(Home) »  论坛(Forum)  » 程序编写(Program)
GEMINIGHT

自称:发贴器2号
等级:发贴器
帖子数:5174
积分:9589
阅读权限:99
gcc编译器使用教程 1楼
Tags: gcc,C++

Tags引力关联贴
01gcc入门(上)\N[flash=640,480]http://player.youku.com/player.php/sid/XMzgzMzgxNDQ0/v.swf[/flash]\N\N02gcc入门(下)\N[flash=640,480]http://player.youku.com/player.php/sid/XMzgzMzk1MDg0/v.swf[/flash]
🗓2012-12-29 20:27(约11年前)  👁76
GEMINIGHT

自称:发贴器2号
等级:发贴器
帖子数:5174
积分:9589
阅读权限:99
Windows版gcc---MinGW的安装说明 2楼
MinGW - Minimalist GNU for Windows\NMinGW - A collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs.\Nmingw 是windows版本的gnu c/c++工具集 主要包括编译器gcc,连接器make,调试器gdb \NMinGW 官方网站为 http://www.mingw.org\N 可参考最新版本,为如下地址:\N http://sourceforge.net/projects/mingw/\N\N安装软件:\N1,mingwrt-3.15.1,通过网络安装,将所有的东西都装在C:\MinGW(默认目录),但是最好改成c:\mingw 这样可以同msys更好的结合\N 下载地址:http://sourceforge.net/projects/mingw/\N\N2,Visual-MinGW 0.59,安装完毕后,Visual-MinGW会提示让你寻找compile目录,这时候选mingw安装目录(默认是C:\MinGW)即可\N 下载地址:http://visual-mingw.sourceforge.net/\N\N3,mingw32-make-3.80.0-3.exe\N 下载地址:http://sourceforge.net/project/downloading.php?groupname=mingw& filename=mingw32-make-3.80.0-3.exe&use_mirror=nchc\N\N4,配置环境变量,复制“mingw32-make.exe”增加“make.exe”\N\N5,打开Visual-MinGW,想写点啥就写点啥吧,finish\N\N[b]提示:[/b]\N(1)MinGW-4.1.1.exe安装时(这里只是安装”current”,不安装”source”)下载以下几个包:\N ada.tar.gz\N binutils.tar.gz\N g++.tar.gz\N g77.tar.gz\N gcc.tar.gz\N java.tar.gz\N runtime.tar.gz\N w32api.tar.gz\N objc.tar.gz\N mingw32-make.tar.gz\N 如果你水平可以,完全可以单独下几个自己需要的包配置一下,而不需要安装在(1)里如上配置\N\N (2)配置环境变量:\N PATH C:\mingw\bin;%PATH% (千万别直接覆盖PATH变量,务必将其放在最前面,要用分号隔开)\N LIBRARY_PATH C:\mingw\lib\N C_INCLUDEDE_PATH C:\mingw\include\N INCLUDE C:\mingw\include\N CPLUS_INCLUDE_PATH C:\mingw\include\c++\3.4.5;C:\mingw\include\c++\3.4.5\mingw32;C:\mingw\include\c++\3.4.5\backward;C:\mingw\include\N (不同版本的c++版本不同,不要盲目照转,如安装不同的MinGW版本, 清注意配置)\N\N (3) 将C:\mingw\bin下的文件“mingw32-make.exe”复制一份并改名为“make.exe”,方便以后操作。\N \N[b]测试:[/b]\N (1)在cmd中执行下make命令(如c:\mingw\bin>make.exe),如果出现“***No targets specfied and no make file found stop”,设置成功。\N\N (2)在cmd中输入“gcc -v”,如果屏幕出现“gcc不是内部命令或外部命令,也不是可运行的程序或批处理文件。”表示环境变量设定有问题。\N 如果出现如下显示,表示设定成功。\N[color=DarkGreen] H:\>gcc -v\N Reading specs from C:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs\N Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32\N --target=mingw32 --prefix=/mingw --enable-threads -le-sjlj-exceptions --enable-libgcj --disable-java-awt\N --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchroni\N Thread model: win32\N gcc version 3.4.5 (mingw-vista special r3)\N H:\>[/color]\N\N (3)在cmd中输入“mingw32-make -version”或者是"make -v",如果屏幕出现:\N[color=DarkGreen] H:\>mingw32-make -version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-pc-mingw32 H:\>make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i686-pc-msys Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to >.[/color]\N\N[align=right]来源:blog.sina.com.cn/s/blog_492abb0f0100fwnu.html[/align]
🗓2013-1-1 14:44(约11年前)  👁1
GEMINIGHT

自称:发贴器2号
等级:发贴器
帖子数:5174
积分:9589
阅读权限:99
MinGW安装和第一个“Hello, World!”程序 3楼
[align=center][flash=640,480]http://player.youku.com/player.php/sid/XNDE1ODQwMDMy/v.swf[/flash][/align]
🗓2013-1-2 18:54(约11年前)  👁2
GEMINIGHT

自称:发贴器2号
等级:发贴器
帖子数:5174
积分:9589
阅读权限:99
g++编译程序介绍 4楼
Tags: g++,C++

Tags引力关联贴
g++编译程序\N[url]//www.cnblogs.com/viggo/articles/11284950.html[/url]
🗓2024-4-5 19:51(约7个月前)  👁2

标题(Title):
关键字标签(Tags):
路人:回贴可以不必登录