Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Standalone c++ compiler

I would like a standalone C++ compiler that doesn't need installing. Something that can run from a directory or from a USB key.

I have googled it, but I can't really find exactly what I am looking for. It doesn't matter if it is just a command line compiler or if is an IDE. I would appreciate a link to the page where I can actually download the file that I need.

Since I am still new to C++, just to make sure that you all understand what I am looking for: I would like a program so that I can run that program on a source file (.cpp) and produce and executable.

I am on 64 bit Windows 7.

EDIT: Just to be clear. I would prefer if I could simply just download a zip-file (or something like that) and unzip it into a directory on the computer and then boom it works.

like image 350
Thomas Avatar asked Jun 01 '12 03:06

Thomas


People also ask

Is there an official C compiler?

There's no official C compiler on any platform, and gcc is not a Windows program. The two main toolkits which provide C a compiler on Windows are MinGW and Cygwin. Both include a port of gcc, and after installing either one, you can use the gcc command to compile your C code.

Is there a built in C compiler in Windows?

Unfortunately, there is no in-built compiler. You need to install one.


2 Answers

I recommend STL's MinGW distro, which is xcopyable and includes the latest GCC (currently, GCC 4.7).

like image 88
James McNellis Avatar answered Sep 20 '22 14:09

James McNellis


SO user rubenv has some distributions of Mingw-w64:

For gcc 4.7.0. Grab one with win64 in the filename.

He also had clang somewhere, but I can only find the 32-bit windows version right now.

Just download and unzip the file. You will have to update your PATH manually though. However, no boost like STL's distro.

like image 40
Jesse Good Avatar answered Sep 19 '22 14:09

Jesse Good