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

后端 未结 4 1354
予麋鹿
予麋鹿 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:11

    For the beginning I would say it is enough to Install MinGW. If you have installed it you find in the bin folder a gcc.exe which is the Compiler. Either set the PATH Variable to the bin folder or go directly to this folder. In terminal use:

      gcc your_C_file.c
    

    The output will be an exe.

提交回复
热议问题