Question:
What is a virus free and price free C++ compiler?
?
2014-02-25 17:31:21 UTC
What is a virus free and price free C++ compiler?
Seven answers:
Andrew S
2014-02-25 17:37:38 UTC
GCC

Open Watcom
?
2016-08-24 18:27:29 UTC
2
t
2014-02-25 17:48:29 UTC
The major ones are

- Microsoft Visual C++ compiler (comes with Visual Studio Express [1], which is free)

- GCC, the GNU Compiler Collection (on Windows, requires MinGW [2] or Cygwin [3])

- Clang [4] (on Windows, requires Visual Studio or MinGW)



[1] Visual Studio Express: http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop

[2] MinGW: http://www.mingw.org/wiki/Getting_Started

[3] Cygwin: http://cygwin.com/install.html

[4] Clang: http://llvm.org/releases/download.html
husoski
2014-02-25 18:28:15 UTC
There's a version of the free and open source GNU C++ compiler (g++) for every major desktop platform. For Unix/Linux, it's probably already installed. Some Linux distros only incude the C compiler, so you may have to download additional packages to get g++. It should be listed in your graphical software installer.



For OSX, download the Xcode package from Apple. See:

http://developer.apple.com



Windows has two major GNU ports: MinGW generates native windows executables, and Cygwin generates Unix-like executables that run with assistance from an adapter DLL. Prefer MinGW for writing new code, or Cygwin for easy porting of Unix-specific code to a Windows environment. I have both installed under WIn7.

http://www.mingw.org

http://www.cygwin.com



An easy way to get MinGW, plus a decent IDE that's also free and open-source, is to install Code:Blocks bundled with the MinGW port of the GNU tools. (Code:Blocks is also available for Unix, Linux, MacOS(X) and others.)

http://www.codeblocks.org



Also for Windows, you should have Visual C++ around, even if it's not your main compiler. The version in the free Visual Studio Express is the full compiler, minus a few MS-specific libraries like the legacy MFC framework. You probably won't need that.

http://www.visualstudio.com/products/visual-studio-express-vs

(Get the "Windows Desktop" version.)
John Y
2014-02-25 17:40:39 UTC
Try this: http://gcc.gnu.org/



If you have GNU/Linux, OpenIndiana or some of the other free unix-like operating systems you should be able to find it in the repositories by typing 'gcc' in your search when you're using the software installer. If you're using Windows, you can find a version of it for Cygwin.
DrZoo
2014-02-25 18:03:58 UTC
If you're a student, you can get Microsoft Visual Studio for no charge. Otherwise I would recommend g++ aka gcc



You could also use Eclipse or Code::Blocks if you wanted to. MSVS, Eclipse and Code::Blocks are actuall IDE's
?
2014-02-25 17:32:44 UTC
For something like that, I pay. MS Visual Studio is what I use.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...