【GCC】在Windows下使用GCC编译程序

NotReferenced / 2023-08-08 / 原文

1、安装

到MinGW下载最新的安装包
image

2、使用

将安装包下载解压后,直接使用gcc进行编译:

#include "stdio.h"
int main()
{
    printf("hello");
}
> ./gcc.exe -o hello.exe Hello.c
> ./hello.exe

image