Where can I find an cross-platform compiler?

I need an compiler that can compile on Windows, Linux, Mac and others. I Googled up but I didn't find any (only GNU GCC, but it isn't avaible for MAC). Tried to download xcode C++ compiler, but I'm on Windows, so I have a hard question. Which one I can download on Windows and use in almost all OS?
Last edited on
Platform | Name
Windows  | MinGW
Linux    | GCC
Mac      | XCode

Precisely, XCode is a tools package INCLUDING g++.
A fast googling gives this: http://stackoverflow.com/questions/2122425/how-do-i-install-g-on-macos-x

You'll need three compilers for this task tho - one for each OS.
There's no other way.
Last edited on
@EssGeEich, I need to download this and store in a USB-Pen Drive. I have a Mac Developer ID, but looks I can't download on Windows.
Wait, you mean you want a compiler that runs on multiple operating systems without having difference files for each OS? Considered that not even normal games and applications have managed that, I'd say you're out of luck.
@L B You didn't understand. I want the same compiler (type!), but not the files for all OS in one package. I'll download and set the compiler for each OS.
Last edited on
Well, GCC has ports for all 3 of Mac, Linux and Windows. Linux and Mac can use GCC, Windows can use MinGW or Cygwin. Just look it up for each one.

But why do you need this? You do realise you can use CMake or something to generate different makefiles depending on the compiler and the OS you are using at the time? That is what I would recommend.
@NT3 Sorry , I'm not an expert on *NIX, and I didn't know that GCC works on Mac. Thanks. :D
Ohh... Another idiot question... Where I can find GCC? I download 4.8.2 and I didn't find C++ things like g++...
Topic archived. No new replies allowed.