Sometimes it is inevitable that C compiler will be used when debugging and writing some common programs. However, Vs in Windows is too large and it is hard to run with 2 GB memory, not to mention the slowness of installation.
Install eclipse first. In fact, to install eclipse in Windows, you also need to install Java virtual machine first, but you do not need to set environment variables, download the Java Virtual Machine installation and overwrite the jar folder in the installation directory to the eclipse installation directory.
The download of eclipse and the download of Java virtual machine are in my other blog posts, which are not described here. Baidu is also very easy to find.
1. Install the compiler, Dev-C ++
: Http://download.csdn.net/detail/cp1300/4857245
The installation is complete.
2. Open eclipse
3. Set eclipse
Window ---> preferences ---> C/C ++ ----> build -----> Environment
The path to be added must be found in Dev-C ++.
Open Dev-C ++ ---> Tools -----> compilation options -----> directory
Add variables to view your actual path
Pata g: \ Program Files \ DEV-CPP \ bin
Library
LIBRARY_PATH G: \ ProgramFiles \ DEV-CPP \ Lib
Related header file path
Cplus_include_path G: \ ProgramFiles \ DEV-CPP \ include; G: \ ProgramFiles \ DEV-CPP \ Lib \ GCC \ mingw32 \ 3.4.2 \ include; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2 \ backward; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2 \ mingw32; G: \ ProgramFiles \ DEV-CPP \ include \ c ++ \ 3.4.2; G: \ ProgramFiles \ DEV-CPP \ include
Set tool chains
Apply configuration, re-close and re-open eclipse
4. Create a project
Next step
Click Finish ..
Other operations are the same as those in Ubuntu.