Need C++ Compiler for Windows

Hello,
i did my first Steps with C++ on Linux and used g++ for compilation and linking.
Now i want to compile same of my first projects on Windows.
Can you please tell my what compiler i can use on Windows?
I don't need on IDE. I only need a Compiler and Linker.
Regards Christian
myoggradio wrote:
I don't need on IDE. I only need a Compiler and Linker.

Now that's what I like to hear!


You can go on using g++ from the command window in Windows in exactly the same way as you would do in linux. A good source is
http://mingw-w64.org/doku.php
Go with MSYS2: https://www.msys2.org/
It has g++ 9.2, clang++ 9.0
A good package repository: https://packages.msys2.org/group/
and a serviceable package manager: https://github.com/msys2/msys2/wiki/Using-packages
@myoggradio,
let me suggest this distribution:
https://nuwen.net/mingw.html

- - -
lastchance wrote:
Now that's what I like to hear!

Even if you don’t like IDEs, if you use Notepad++ to program in different languages, if you haven’t tryied it yet, you really should give the NppExec plugin a chance. It would save you a lot of time.

Enoizat wrote:
if you use Notepad++ to program in different languages

I don't.


I have, for a very long time, used THE (The Hesseling Editor):
http://hessling-editor.sourceforge.net/doc/misc/quickref.html#QUICKREFERENCEFORTHE
http://hessling-editor.sourceforge.net/index.html
(Follow the downloads link and expand the "Files" tab; v3.3beta3 was the last for Windows.)
I use a non-standard profile file to make it look like IBM's VM/CMS text editor XEDIT (with which, many years ago, I did some serious programming on an IBM mainframe). It has some very powerful scripted editing facilities, and means that I stay entirely within a command window instead of launching any Windows app.

Last edited on
Probably my Alzheimer is getting worse :-( I thought I have read in some post you use Notepad++ both with C++ and Fortran… Sorry.
Last edited on
Oh, I've used many Windows editors, @Enoizat, including Windows notepad, Notepad++, and even a vim port for Windows(!) (mainly to retain my skills on unix). However, for my own programming, I prefer THE.

Anyway, the original poster wanted a compiler/linker suggestion and any of those suggested:
mingw-w64.org
msys2
nuwen
would be fine.

But I do hate IDEs!

Hello,

I think TDM has a nice compiler (GCC on Windows) package that deserves mentioning:
http://tdm-gcc.tdragon.net/

Good luck, Nico
I use cygwin's g++ which with a path edit in windows will not only give you G++ at the command line but all the major unix tools like grep will tag along with it if you install those parts.
Thank you very much for yours Answers. I will try first nuwen. May be this helps.
So far all the suggestions have been for GCC-style compilers, and Clang-GCC.

If I may, MSVC and Clang-CL are my go-to compilers on Windows, and I will often test against MSYS2’s MinGW as well.
Visual Studio (Visual Studio Code is a different thing) can compile C++ code either from the IDE or command-line:

https://docs.microsoft.com/en-us/cpp/build/walkthrough-compiling-a-native-cpp-program-on-the-command-line?view=vs-2019

You can download and use just the MS C++ toolset from the command-line, no IDE, the VS IDE setup can gobble up a lot of HD space:

https://docs.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=vs-2019

Topic archived. No new replies allowed.