How to compile C program on command line using MinGW?

前端 未结 14 1103
天命终不由人
天命终不由人 2021-01-30 17:19

What command does one have to enter at the command line in Windows 7 to compile a basic C program?

Like I am literally wondering what you type in the command prompt, to

14条回答
  •  遥遥无期
    2021-01-30 18:03

    I once had this kind of problem installing MinGW to work in Windows, even after I added the right System PATH in my Environment Variables.

    After days of misery, I finally stumbled on a thread that recommended uninstalling the original MinGW compiler and deleting the C:\MinGW folder and installing TDM-GCC MinGW compiler which can be found here.

    You have options of choosing a 64/32-bit installer from the download page, and it creates the environment path variables for you too.

提交回复
热议问题