在 (C:\MinGW\msys\1.0\msys.bat) 文件头部加上一条命令: (我这里使用的 vs2008 的 lib.exe) call " C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat "