Eclipse CDT with C Compiler Setup in Windows 10
2 min readMay 16, 2020
- Operating System: Windows 10 Education 1909
- Compiler: MinGW GCC
All the following steps assume that Eclipse CDT has been installed.
- Download Strawberry Perl.
- Install Strawberry Perl, because the installer will automatically add environment variables to the system convenience, you don’t need to do any additional operations.
- Now, open Eclipse and create a C project, Eclipse will show the following window:
Choose MinGW GCC as Toolchains.
- An unbuilt C project would look like this:
- Now, build this project, and the console will output the following:
The project will build the binary file, which means you can run the code:
- The console will display the following output:
- Although C is a compiled language, you only need to build it once in Eclipse and run the code directly to automatically build the latest binary file without clearing the built binary file when the code is modified.
Hope these instructions can help you.