Windows 7 eclipse C/C ++ Development Environment

Source: Internet
Author: User
Windows 7 eclipse C/C ++ Development Environment

1. Download eclipse-cpp-indigo-sr2-incubation-win32.zip, and create the eclipse.exe shortcut to the desktop.

2. Download mingw-get-inst-20111118.exe. This file is only 579kb. It is the download and Installation Guide file for mingw. Click "Install" and select the C and CPP compilers.


After installation is complete, there is a prompt file mingw-get-log.txt, see the http://hi.baidu.com/designhouse/blog/item/53448c10e3594a1e203f2e09.html

 

3. Add Environment Variables

Right-click computer> Properties> advanced system Settings> environment variables> System Variables
Mingw_home = C:/mingw
LIBRARY_PATH = % mingw_home %/lib
C_include_path = % mingw_home %/include
Add at the end of the PATH variable; % mingw_home %/bin

Restart the computer after setting the environment variable. Otherwise, the environment variable does not take effect.

4. For convenience, set mingw GCC as the default tool chain

5. Verification:

Open eclipse, create the hello World project in C and CPP respectively, and compile and run it.

 

Mingw-get-log.txt

The file storage address is c: \ mingw \ var \ log.

Http://prdownloads.sourceforge.net/mingw/mingw-get-0.4-mingw32-alpha-1-bin.tar.xz? Download
172.17 KB/172.17 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/mingw-get-0.4-mingw32-alpha-1-lic.tar.xz? Download
12.05 KB/12.05 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/pkginfo-0.4-mingw32-alpha-1-bin.tar.xz? Download
7.39 KB/7.39 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libiconv-1.14-2-mingw32-dll-2.tar.lzma? Download
535.88 KB/535.88 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libgmp-5.0.1-1-mingw32-dll-10.tar.lzma? Download
155.29 KB/155.29 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma? Download
108.53 KB/108.53 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma? Download
26.71 KB/26.71 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma? Download
21.05 KB/21.05 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libquadmath-4.6.1-2-mingw32-dll-0.tar.lzma? Download
159.03 KB/159.03 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libgomp-4.6.1-2-mingw32-dll-1.tar.lzma? Download
18.60 KB/18.60 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libmpc-0.8.1-1-mingw32-dll-2.tar.lzma? Download
23.58 KB/23.58 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libssp-4.6.1-2-mingw32-dll-0.tar.lzma? Download
15.03 KB/15.03 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libgcc-4.6.1-2-mingw32-dll-1.tar.lzma? Download
41.20 KB/41.20 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma? Download
44.14 KB/44.14 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/mingwrt-3.20-mingw32-dll.tar.gz? Download
15.69 KB/15.69 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/w32api-3.17-2-mingw32-dev.tar.lzma? Download
1.07 MB/1.07 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/mingwrt-3.20-mingw32-dev.tar.gz? Download
862.97 KB/862.97 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/binutils-2.21.53-1-mingw32-bin.tar.lzma? Download
1.79 MB/1.79 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libexpat-2.0.1-1-mingw32-dll-1.tar.gz? Download
61.31 KB/61.31 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gdb-7.3.1-1-mingw32-bin.tar.lzma? Download
1.79 MB/1.79 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/make-3.82-5-mingw32-bin.tar.lzma? Download
91.45 KB/91.45 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gcc-4.6.1-2-mingw32-lic.tar.lzma? Download
20.72 KB/20.72 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/libstdc++-4.6.1-2-mingw32-dll-6.tar.lzma? Download
221.86 KB/221.86 kb | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gcc-core-4.6.1-2-mingw32-bin.tar.lzma? Download
9.42 MB/9.42 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gcc-4.6.1-2-mingw32-doc.tar.lzma? Download
1.02 MB/1.02 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gcc-4.6.1-2-mingw32-lang.tar.lzma? Download
1.22 MB/1.22 MB | ====================================== ================= | 100%
Http://prdownloads.sourceforge.net/mingw/gcc-c++-4.6.1-2-mingw32-bin.tar.lzma? Download
5.64 MB/5.64 MB | ====================================== ================= | 100%
Install: mingw-get-0.4-mingw32-alpha-1-bin.tar.xz
Installing mingw-get-0.4-mingw32-alpha-1-bin.tar.xz
Install: mingw-get-0.4-mingw32-alpha-1-lic.tar.xz
Installing mingw-get-0.4-mingw32-alpha-1-lic.tar.xz
Install: pkginfo-0.4-mingw32-alpha-1-bin.tar.xz
Installing pkginfo-0.4-mingw32-alpha-1-bin.tar.xz
Install: libiconv-1.14-2-mingw32-dll-2.tar.lzma
Installing libiconv-1.14-2-mingw32-dll-2.tar.lzma
Install: libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
Installing libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
Install: libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
Installing libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
Install: libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
Installing libpthreadgc-2.9.0-mingw32-pre-20110507-2-dll-2.tar.lzma
Install: pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
Installing pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
Install: libquadmath-4.6.1-2-mingw32-dll-0.tar.lzma
Installing libquadmath-4.6.1-2-mingw32-dll-0.tar.lzma
Install: libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
Installing libgomp-4.6.1-2-mingw32-dll-1.tar.lzma
Install: libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
Installing libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
Install: libssp-4.6.1-2-mingw32-dll-0.tar.lzma
Installing libssp-4.6.1-2-mingw32-dll-0.tar.lzma
Install: libgcc-4.6.1-2-mingw32-dll-1.tar.lzma
Installing libgcc-4.6.1-2-mingw32-dll-1.tar.lzma
Install: libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
Installing libintl-0.18.1.1-2-mingw32-dll-8.tar.lzma
Install: mingwrt-3.20-mingw32-dll.tar.gz
Installing mingwrt-3.20-mingw32-dll.tar.gz
Install: w32api-3.17-2-mingw32-dev.tar.lzma
Installing w32api-3.17-2-mingw32-dev.tar.lzma
Install: mingwrt-3.20-mingw32-dev.tar.gz
Installing mingwrt-3.20-mingw32-dev.tar.gz
Install: binutils-2.21.53-1-mingw32-bin.tar.lzma
Installing binutils-2.21.53-1-mingw32-bin.tar.lzma
Install: libexpat-2.0.1-1-mingw32-dll-1.tar.gz
Installing libexpat-2.0.1-1-mingw32-dll-1.tar.gz
Install: gdb-7.3.1-1-mingw32-bin.tar.lzma
Installing gdb-7.3.1-1-mingw32-bin.tar.lzma
Install: make-3.82-5-mingw32-bin.tar.lzma
Installing make-3.82-5-mingw32-bin.tar.lzma
Install: gcc-4.6.1-2-mingw32-lic.tar.lzma
Installing gcc-4.6.1-2-mingw32-lic.tar.lzma
Install: libstdc1_0000-4.6.1-2-mingw32-dll-6.tar. lzma
Installing libstdc1_0000-4.6.1-2-mingw32-dll-6.tar. lzma
Install: gcc-core-4.6.1-2-mingw32-bin.tar.lzma
Installing gcc-core-4.6.1-2-mingw32-bin.tar.lzma
Install: mingw32-base-2011060500-mingw32-bin.meta
Installing mingw32-base-2011060500-mingw32-bin.meta
Install: gcc-4.6.1-2-mingw32-doc.tar.lzma
Installing gcc-4.6.1-2-mingw32-doc.tar.lzma
Install: gcc-4.6.1-2-mingw32-lang.tar.lzma
Installing gcc-4.6.1-2-mingw32-lang.tar.lzma
Install: gcc-c00000000-4.6.1-2-mingw32-bin.tar. lzma
Installing gcc-c00000000-4.6.1-2-mingw32-bin.tar. lzma

It can be seen that GDB already exists. The GCC version is 4.6.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.