How to Compile Software from Source Code



+ Add a Comment


Windows usually provides installer programs so that users can install programs by just clicking around ,but if you are a developer ,the same thing you do on linux is basically done on windows.I have attempted to cover that in this tutorial




I think this article is a little misleading. You cannot compile program source code to run in Windows. Cygwin is a Unix emulator for windows. In fact if you read the Cygwin website it states:


Cygwin is not:

  • a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows.
  • a way to magically make native Windows apps aware of UNIX® functionality like signals, ptys, etc. Again, you need to build your apps from source if you want to take advantage of Cygwin functionality.


Which means its not designed to run applications written for linux on windows. The article should mention that once the programs are compiled the apps will HAVE to run in cygwin in order for them to work. I understand that this article is designed for the non-tech savvy to compile code to use an open source program, but it should mention the above as to avoid confusion (eg: why doesn't the program run when they double click a.out).






I've never encountered source code-only option for Windows, but *several* times I have under Linux of was kind of fun at first, but was kind of redundant, was time consuming and introduced me to the term "dependency hell".

I'm digging the fact that Linux is more mainstream than it was in 2003-2004 when I started using it, which is why manual compiling is not as common anymore (find the .deb or .rpm, or run the automated shell script). It's a nice learning experience to have, though, lol.



No kiding ShyLinuxGuyu, I remember doing the same a few years back, it seems to be less necessary with the later Linux Distro's. Good to know, no doubt, in case one needs to to use it.

Log in to MaximumPC directly or log in using Facebook

Forgot your username or password?
Click here for help.

Login with Facebook
Log in using Facebook to share comments and articles easily with your Facebook feed.