方法1: 在windres 命令后加上 --use-temp-file ,此方法要修改makefile .这样每次configure后都要修改.很不方便.
windres --use-temp-file --include-dir=.. ace.rc .shobj/ace.rc.o
参考文章:http://mingw.5.n7.nabble.com/windres-can-t-popen-td7919.html
方法2:
以管理员身份运行 打开编译环境.对于我的msys2 编译环境 就是对应的(mingw32_shell.bat).