Although C has many classic development environments, most of them are in Linux or Unix. It may not be used to many loyal Windows users.
In Windows, there is a Dev-C ++ that can be used for CCodeBut the software seems to have stopped updating, and I personally think it is not fashionable, a little outdated. Therefore, on Windows platforms, I prefer to recommend the eclipse environment.
1. Download Eclipse IDE for C/C ++ developers
Address: http://www.eclipse.org/downloads/ or http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers/heliossr1 with 32-bit and 64-bit version, you can look at it yourself
Note: eclipse can run only when Java is running. If it is not installed, go to www.java.com to down one.
2. Download mingw
Eclipse is just a shell of the IDE, and also requires a C compiler on the Windows platform.
Down a mingw installation on the http://sourceforge.net/projects/mingw/files/Program
Note: the installation process requires Internet connection, and the download speed is extremely slow. Please wait patiently. After the installation is complete, check that gcc.exe, mingw32-gcc.exe, mingw32-make.exe, and other important files exist in the X: \ mingw \ bin. If network access problems occur, these files may not be correctly installed (of course, error will ), if none of these basic files exist, you need to reinstall them.
3. Add system environment variables for Windows
Assume that mingw is installed in the C root directory.
"Path" = "C: \ mingw \ bin; % PATH %"
"LIBRARY_PATH" = "C: \ mingw \ Lib"
"C_include_path" = "C: \ mingw \ include"
After completing these settings, you can enter CMD in the running column to enter the DOS window and enter
Mingw32-make.exe-version
If the following information is displayed:
GNU make 3.82
Built for i386-pc-mingw32
Copyright (c) 2010 Free Software Foundation, Inc.
License gplv3 +: gnu gpl Version 3 or later This is free software: You are free to change and redistribute it.
There is no warranty, to the extent permitted by law.
It indicates OK. Otherwise, check whether the previous steps are normal.
Note: mingw is pure green software. After the installation is complete on the local machine, if you want to install it on another machine, just copy the mingw directory of the local machine.
4. Start eclipse and create a C Project
Note: If you can't wait to start eclipse and create a C project before completing step 1, you 'd better delete it first.
After the project is created, the project structure is as follows:
Click Run to display the running result in the console output window: