How can I compile C files into an executable (.exe) file?

后端 未结 4 1316
予麋鹿
予麋鹿 2021-01-19 19:35

I am unsure about compiling C files into executables by using Cygwin under Windows 7.

Can anyone please tell me how to do this?

I\'ve read some tutorials but

4条回答
  •  攒了一身酷
    2021-01-19 20:13

    Q: How can i compile c-files into an executable (.exe) file?

    A: Get and use a C compiler.

    GCC/Cygwin is one possibility. MS Visual Studio is another: you can download the free "MSVS Express" here: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express.

    How you interact with the compiler is another question.

    You can certainly use a command line.

    You can use a command line with or without "Make": you can let "Makefiles" do the "heavy lifting" for you, you can use .bat files, or you can type everything by hand.

    Using a graphical IDE is another possibility. "Eclipse" and "MS Visual Studio" are two popular alternatives for Windows.

提交回复
热议问题