Eclipse CDT with C Compiler Setup in Windows 10

Ultra Magnus
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.

  • Install Strawberry Perl, because the installer will automatically add environment variables to the system convenience, you don’t need to do any additional operations.
Three environment variables have been added.
  • 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:
Includes means compiler location in Windows 10, it also means if includes displays in your project, your C compiler has configuration successfully.
  • 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.

--

--

Ultra Magnus

A computer science student from Wilfrid Laurier University