gcc为程序添加icon 过程首先编辑资源文件执行命令编译 过程 首先编辑资源文件 demo.rc 1 ICON "favicon.ico" 执行命令 windres -i demo.rc -o demo.o 编译 gcc -o hhh.exe demo.o main.c -s