[MinGW] How to compile c by using gcc on window
1. Install MinGW
Go to http://sourceforge.net/projects/mingw/files/
Click Installer
Choose mingw-get-setup.exe to install window system
2. Go to C:\MinGW\bin>
3. Create test.c
4. type gcc test.c
#include <stdio.h>
int main()
{
printf("Happy \n");
return 1;
}
After compile will produce a test.exe
5. Execute test.exe will print Happy on terminal
Reference :
0 意見:
張貼留言