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

1、安装

MinGW下载最新的安装包
image

2、使用

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

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

image

posted @ 2023-08-07 22:30  NotReferenced  阅读(128)  评论(0编辑  收藏  举报