How can I compile C-- code on Windows 7 or Windows XP? I want to compile some sample C-- code, but the only compiler available on the language's website is for Linux.
Asked
Active
Viewed 1,466 times
0

hammar
- 138,522
- 17
- 304
- 385

Maziar Aboualizadehbehbahani
- 1,976
- 17
- 37
-
Why not just boot your PC from a suitable Linux "Live CD" temporarily so that you can use the Linux-based compiler ? – Paul R Sep 09 '11 at 10:56
-
assume i have linux, what should i do with c-minus-minus? any IDE? how to install, compile? Hello world? – Maziar Aboualizadehbehbahani Sep 09 '11 at 11:02
-
Download the tarball, extract it, then typically it's ./configure && make && sudo make install. – Paul R Sep 09 '11 at 12:04
1 Answers
1
The best way to build such things on Windows is to use either cygwin or mingw. These are designed to give you a Linux compatible compilation environment within Windows. You can then just build and install as per the Linux instructions, but the resulting tool will run on Windows; as you desired.

Ajay
- 18,086
- 12
- 59
- 105

Brian Tompsett - 汤莱恩
- 5,753
- 72
- 57
- 129