3 无法进行“nmake”指令。NMAKE : fatal error U1081: 'C:\Windows\system32\cmd.exe' : program not found Stop.

attachments-2020-04-7hl9a3GJ5e9fef5897ad8.png 有没有大神指导以下

  • 3442
请先 登录 后评论

2 个回答

李宇

从运行界面的截图看,NMAKE 报错 U1081 是最后一个报错信息,解决这个问题,需要首先解决之前的两个报错信息,如:

  • 报错信息 1:
C:\Program Files\Microsoft Visual Studio 11.0\SetEnv 不是内部或外部命令,也不是可运行的程序或者批处理文件 
  • 报错信息 2:
ifort: error #10037: could not find 'link'

从这两个报错信息看,需要首先确定 Visual Fortran Intel Version 11.1 与开发环境 Visual Studio 11.0 是否匹配,Visual Studio 11.0 对应的可能是 Visual Studio 2012,如果是的话,这个版本和 Visual Fortran Intel Version 11.1 是不匹配的,如果继续使用 Visual Fortran Intel Version 11.1,Visual Studio 的版本至少得是 Visual Studio 2010 之前的版本,如 Visual Studio 2008 或者 Visual Studio 2005,不清楚 Visual Studio 2010 是否匹配。

做好相应版本的开发环境配置后,看看能不能解决前两个报错信息。

请先 登录 后评论
Merle777

同遇到这个问题,发现 x86 编译窗口无报错,x64 编译窗口有“the specified configuration type is missing”错误

经过一番研究,在 VS2008 中添加“X64 编译器及工具”后报错消失,并成功编译

attachments-2023-03-Ggdl8sNG6402355ff122c.png

请先 登录 后评论