Monday, May 24, 2010

How to execute c program in gcc compiler under windows OS?

I have started to use a gcc compiler (cygwin and mingw) recently. Iam unable to compile and execute programs thorough it. Can somebody tell me where to save the c/c++ files in order to get them compiled and the syntax needed to compile and run them. I would be thankful if someone also provides some links which could help me to get familiar with the gcc compiler.

How to execute c program in gcc compiler under windows OS?
When installing cygwin it doesnt automatically come with gcc. You have to tell it to install it. Its been a while, but basically when you are installing cygwin, you have to hit custom or something and select the packages to install. There are a lot but somewhere you should find one where you can select gcc, makefile, and whatever else you may need.





You can then call gcc as normal.


No comments:

Post a Comment