How do you compile stuff on Windows?

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
User avatar
Demon
Regular Member
Posts: 85
Joined: Wed 31 Jan, 2007 12:11 am
Location: (806), Texas
Contact:

How do you compile stuff on Windows?

Post by Demon »

How do you compile stuff on Windows?
I sure wish Windows had a Synaptic and a package repository so I can get build-essential and be done. :P
"Python has dynamic typing, and dynamic binding, which means that not only does it make a great secretary, it is also pretty damn kinky." --Henry the Adequate

<My Artwork>
User avatar
Dwedit
Maxcoderz Staff
Posts: 579
Joined: Wed 15 Dec, 2004 6:06 am
Location: Chicago!
Contact:

Post by Dwedit »

Choose your weapon: Cygwin or MinGW. Getting the compiler is the easy part, it's getting the huge assortment of libraries used by various programs that's the hard part.
Cygwin makes the generated programs dependent on cygwin dlls, which make it act more like a UNIX program on Windows. MinGW just creates native windows programs.

Alternatively, you could just get Microsoft's "Express Edition" compiler.

Cygwin's installer is somewhat like a package repository, give it a try.
You know your hexadecimal output routine is broken when it displays the character 'G'.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

It depends on what you want to compile.

Building .NET-targetting apps is easy enough; the compilers can be found in %windir%\Microsoft.NET\Framework\v2.0.50727 (eg csc.exe for C#) as well as MSBuild.
Post Reply