Question

I'm kind of new to code and use builders for C++ in Windows because I always coded in Linux using the g++ compiler. I just want to know if it is possible to get a similar compiler/builder to "install" or use it in visual studio. It would be awesome if I could maybe use the g++ compiler on windows (preferably in visual studio) if it is possible?

And if it is possible, how do I go about the download and installations of it?

Was it helpful?

Solution

MinGW!! Great opensource G++ compiler. Follow the instructions on site. If you want something more dedicated, use Cygwin. Visual studio also has its own version of g++ with cl.

OTHER TIPS

You could check this project:

CLangVSx (GitHub repository)

It's an add-in that allows easy use of Clang compiler from inside Visual Studio, replacing the MSVC compiler when building C++ projects.

CLang++ is not G++ but probably it's linux-flavoured enough to make you feel at home.

(preferably in visual studio) if it is possible?

Don't think so, not with Visual Studio (never tried though). Use Eclipse CDT, it will support VS (microsoft's compiler toolchain) the other way round.

Most open toolchain to use for native windows builds is MinGw IMHO.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top