GCC 编译器

 在https://gcc.gnu.org/ 下载GCC编译器。

1.安装GCC编译器之后,将地址F:\GCC\gcc\bin 和 F:\GCC\gcc\include  和F:\GCC\gcc\lib添加到【环境变量】->【path】中

2.打开cmd命令行界面

3.命令

3.1

编译命令:gcc -o output.o test.c test1.c includes.h (生成output.o)

执行命令:.\output.o

3.2

编译命令:gcc test.c test1.c includes.h(生成a.exe)

执行命令:a.exe

猜你喜欢

转载自blog.csdn.net/ninioq/article/details/83621386