My GCC Environment on Windows Vista
2008-05-12 09:10
363 查看
http://blogs.msdn.com/allen/archive/2008/05/05/my-gcc-environment-on-windows-vista.aspx
GCC homepage: http://gcc.gnu.org MinGW homepage: http://www.mingw.org
MingGW packages download page: http://sourceforge.net/project/showfiles.php?group_id=2435 MinGW: A native Win32 port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality.
The minimal packages needed:
MinGW Runtime: Core headers and libraries
Windows API: Headers and libraries needed for building win32 apps.
MinGW/GCC: GCC core, GCC g++, GCC Object C: Currently offical GCC release is 4.3.0 but in MinGW it's still in Alpha so here I choose to use 3.4.5
MinGW/GNU Binutils: Is a collections of GNU binary tools such as ld.exe the linker, as.exe the assembler. More details are at http://www.gnu.org/software/binutils/
Optional Tools
GNU Make
GNU GDB (debugger)
Installation:
1. Create a MinGW root directory, e.g. D:/MinGW
2. Extract all those packages to the root directory
3. Create a batch file to set the environment path. e.g. below, and save this file at D:/Coding/Utilities/gccenv.bat
path "D:/MinGW/bin"
cls
4. Create a shortcut like this: %comspec% /k ""D:/Coding/Utility/gccenv.bat"" x86
To Verify:
D:/Coding>gcc --version
gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 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.
GCC homepage: http://gcc.gnu.org MinGW homepage: http://www.mingw.org
MingGW packages download page: http://sourceforge.net/project/showfiles.php?group_id=2435 MinGW: A native Win32 port of the GNU Compiler Collection (GCC), with freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality.
The minimal packages needed:
MinGW Runtime: Core headers and libraries
Windows API: Headers and libraries needed for building win32 apps.
MinGW/GCC: GCC core, GCC g++, GCC Object C: Currently offical GCC release is 4.3.0 but in MinGW it's still in Alpha so here I choose to use 3.4.5
MinGW/GNU Binutils: Is a collections of GNU binary tools such as ld.exe the linker, as.exe the assembler. More details are at http://www.gnu.org/software/binutils/
Optional Tools
GNU Make
GNU GDB (debugger)
Installation:
1. Create a MinGW root directory, e.g. D:/MinGW
2. Extract all those packages to the root directory
3. Create a batch file to set the environment path. e.g. below, and save this file at D:/Coding/Utilities/gccenv.bat
path "D:/MinGW/bin"
cls
4. Create a shortcut like this: %comspec% /k ""D:/Coding/Utility/gccenv.bat"" x86
To Verify:
D:/Coding>gcc --version
gcc (GCC) 3.4.5 (mingw-vista special r3)
Copyright (C) 2004 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.
相关文章推荐
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista, Windows 7, and Windows
- Setting Up the Development Environment for SharePoint 2010 on Windows Vista,
- How can I disable the User Account Control (UAC) feature on my Windows Vista computer?
- Install IIS 7 on Windows Vista and Windows 7
- VS 2005 & SQL Server 2005 on Windows Vista
- "My Computer" Opening Slowly on Windows XP
- My Feedback for Windows 10 IoT Core on Feedback Hub App (4/1/2017-1/23/2018)
- FTP not working on Java 7 on Windows 7 and VISTA when Windows Firewall is enabled
- VS 2005 & SQL Server 2005 on Windows Vista
- GCC: Compiling an OpenCL host on Windows
- VS 2005 & SQL Server 2005 on Windows Vista
- How to prevent the Program Compatibility Assistant from appearing on Windows Vista
- VS 2005 & SQL Server 2005 on Windows Vista
- How to Install IIS on Windows 7 or Vista - How-To Geek
- add Windows build environment-mingw to qt5.2.1 on ubuntu(AMD64)
- VS 2005 & SQL Server 2005 on Windows Vista
- How to install ASP.NET 1.1 with IIS7 on Vista and Windows 2008
- VS 2005 & SQL Server 2005 on Windows Vista