在编译Aspen Fortran模型时出现下面的错误提示,求解决 ...? aspcomp: using compiler c:\program files (x86)\intel\composer xe 2013 sp1\bin\intel64_mic\ifort.exe aspcomp: warning! microsoft c runtime library msvcrt.lib not found in %lib% aspcomp: warning! microsoft c runtime library is needed for dynamic linking. aspcomp: warning! intel fortran runtime library libifcoremd.lib not found in %lib% aspcomp: warning! intel fortran runtime library is needed for dynamic linking. ifort.exe /nologo /c -dawinntn -dwin32 -i. "-ic:\program files (x86)\aspentech\aprsystem v7.3.2\engine\commons" "-ic:\program files (x86)\aspentech\aspen plus v7.3.2\engine\commons" /fpp /qsave /iface:cvf /md -object:"hfum.obj" "hfum.f" ifort: error #10236: file not found: '/nologo' ifort: error #10236: file not found: '/c' ifort: error #10236: file not found: '/fpp' ifort: error #10236: file not found: '/qsave' ifort: error #10236: file not found: '/iface:cvf' ifort: error #10236: file not found: '/md' ifort: warning #10362: environment configuration problem encountered. please check for proper mpss installation and environment setup. hfum.f(17): warning #5117: bad # preprocessor line #include "ppexec_user.cmn" -^ hfum.f(18): warning #5117: bad # preprocessor line #include "dms_plex.cmn" -^ hfum.f(21): warning #5117: bad # preprocessor line #include "dms_ncomp.cmn" -^ hfum.f(20): error #6229: this equivalence object must be an array. [ib] equivalence(b(1),ib(1)) -----------------------^ hfum.f(71): error #6404: this name does not have a type, and must have an explicit type. [user_nhstry] write(user_nhstry,*) ----------------^ hfum.f(148): error #6404: this name does not have a type, and must have an explicit type. [ncomp_ncc] call ppmon_viscl(msin(ncomp_ncc+2,1),msin(ncomp_ncc+3,1), ----------------------------^ hfum.f(20): error #6404: this name does not have a type, and must have an explicit type. [ib] equivalence(b(1),ib(1)) -----------------------^ compilation aborted for hfum.f (code 1) ifort: error #10236: file not found: '/nologo' ifort: error #10236: file not found: '/c' ifort: error #10236: file not found: '/fpp' ifort: error #10236: file not found: '/qsave' ifort: error #10236: file not found: '/iface:cvf' ifort: error #10236: file not found: '/md' ifort: warning #10362: environment configuration problem encountered. please check for proper mpss installation and environment setup. hfum.f(17): warning #5117: bad # preprocessor line #include "ppexec_user.cmn" -^ hfum.f(18): warning #5117: bad # preprocessor line #include "dms_plex.cmn" -^ hfum.f(21): warning #5117: bad # preprocessor line #include "dms_ncomp.cmn" -^ hfum.f(20): error #6229: this equivalence object must be an array. [ib] equivalence(b(1),ib(1)) -----------------------^ hfum.f(71): error #6404: this name does not have a type, and must have an explicit type. [user_nhstry] write(user_nhstry,*) ----------------^ hfum.f(148): error #6404: this name does not have a type, and must have an explicit type. [ncomp_ncc] call ppmon_viscl(msin(ncomp_ncc+2,1),msin(ncomp_ncc+3,1), ----------------------------^ hfum.f(20): error #6404: this name does not have a type, and must have an explicit type. [ib] equivalence(b(1),ib(1)) -----------------------^ compilation aborted for hfum.f (code 1) -------------------------------------------------------------- 在官方帮助文档里面,跟着教程做里面的第四节一个案例,遇到了上面的问题 自己分析一下问题: 自认为已经排除了拼写的错误,很可能官方给点程序代码有关(个人认为与下面三条关系较大,代码参见参考部分): #include "ppexec_user.cmn" #include "dms_plex.cmn" #include "dms_ncomp.cmn" 补充:原本来没有将c:\program files (x86)\intel\composer xe\bin\intel64_mic添加到系统变量path中时提示的错误信息是这样子的: aspcomp: warning! intel fortran compiler ifort.exe not found in %path% aspcomp: warning! microsoft c runtime library msvcrt.lib not found in %lib% aspcomp: warning! microsoft c runtime library is needed for dynamic linking. aspcomp: warning! intel fortran runtime library libifcoremd.lib not found in %lib% aspcomp: warning! intel fortran runtime library is needed for dynamic linking. ifort.exe /nologo /c -dawinntn -dwin32 -i. "-ic:\program files (x86)\aspentech\aprsystem v7.3.2\engine\commons" "-ic:\program files (x86)\aspentech\aspen plus v7.3.2\engine\commons" /fpp /qsave /iface:cvf /md -object:"hfum.obj" "hfum.f" 'ifort.exe' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 'ifort.exe' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 参考资料:aspenpluscustomizingv732-start.pdf 4 creating an aspen plus fortran model 查看更多