-2

I am new in C programming, and I was searching the internet for a compiler (for Windows 10). The compilers I found all had a full IDE included, but I don't need the IDE (I have a code editor). Is there any C compiler that does not come with an IDE, or at least a way to download one without the IDE?

montw
  • 85
  • 10
  • 3
    GCC doesn't come with an IDE. – Barmar Sep 07 '21 at 16:53
  • 3
    GCC (as part of MinGW) and Clang are both available for Windows. –  Sep 07 '21 at 16:53
  • 5
    I think you have it backwards: IDEs come with compilers, compilers don't come with IDEs. – Barmar Sep 07 '21 at 16:53
  • You can use the command-line compiler of Visual Studio (see https://learn.microsoft.com/en-us/cpp/build/walkthrough-compile-a-c-program-on-the-command-line?view=msvc-160). – pmg Sep 07 '21 at 17:17
  • @pmg oh yeah, I tought that the IDE was the compiler itself! Thanks – montw Sep 07 '21 at 17:20
  • almost any compiler is a command line program – 0___________ Sep 07 '21 at 17:25
  • 3
    `I am new in C programming ...` and `but I don't need the IDE` are contraversions. You need IDE with decent debugger support. VSCode is an IDE, – 0___________ Sep 07 '21 at 17:26
  • I'm not sure I'd agree that VS Code is an IDE. It certainly doesn't include a compiler, so it isn't capable of integrated development out — of the box, at least. – Tim Randall Sep 07 '21 at 18:04
  • I have to agree with @0___________ - the majority of beginner problems posted to SO could be solved easily with an IDE visual debugger. – Martin James Sep 08 '21 at 03:33
  • You'll want Mingw-w64 for modern Windows. https://www.mingw-w64.org/downloads/. Once installed, you can download an IDE like Codeblocks and configure it to point at the existing Mingw installation. Beginners should definitely not fool around with make files like it's the 1980s though, have the IDE handle that. – Lundin Sep 08 '21 at 09:23
  • There is a standalone build of GCC/MinGW-w64 you can download from https://winlib.com/ – Brecht Sanders Sep 08 '21 at 16:02

3 Answers3

2

This is going to get closed, but anyway, you can use any linux based compiler such as gcc or clang.

Also, Visual c++ has a compiler that can be used at the command line. In fact, nearly all C compilers can be used at the command line.

I think Microsoft makes their compiler available for download free. Only the IDE costs money. The compiler itself runs by command and when you use the IDE it just runs the command in the background.

Tyler Durden
  • 11,156
  • 9
  • 64
  • 126
1

How to install gcc in Windows 10? (the easier way)
How to Install the Latest GCC on Windows
Installing GCC: Binaries

marcio
  • 566
  • 7
  • 19
  • 1
    Mingw32 is not longer maintained, I thought. Use Mingw64. Also, link-only answers are frowned upon here since links tend to break over time and answers should add something of value to _this_ site. – Lundin Sep 08 '21 at 09:19
  • One up is mine, @Lundin! – marcio Sep 09 '21 at 17:37
0

You should be able to install GCC without an editor. https://gcc.gnu.org/install/binaries.html

To install it, follow the tutorial here to use MinGW, or use this tutorial to use Cygwin.

On the other hand, you could just use an editor that includes support for GCC. It may already be built into your IDE.

2br-2b
  • 395
  • 2
  • 5
  • 13