|
100韶华币
Aspen二次开发,用visual studio2008+intel fortran11编好.f文件,在输入aspcomp命令时无法生成想要的.obj文件,提示:
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.2\Engine\commons" "-IC:\Program Files (x86)\AspenTech\Aspen Plus V7.2\Engine\\commons" /Qfpp /Qsave /iface:cvf /MD -object:"Usrkin.obj" "Usrkin.f"
'ifort.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
'ifort.exe' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
无法生成obj文件,后面无法进行。之前论坛上也有讨论过这个问题https://meng.horse/thread-83872-1-1.html,没有看懂出现上面错误提示的主要原因应该是编译时找不到相关的Fortran编译文件,所以可以:
先打开Fortran自带的命令行(我用的是ia32这一个),
再在命令行里打开Aspen simulation engine对于的bat文件(可以在属性里找到它的位置,对于的脚本为aspsetup.bat),
这样就进入了Aspen simulation engine的环境了,接着用aspcomp.bat来对要编译的Fortran文件进行编译。
- 本文出自马后炮化工-让天下没有难学的化工技术,原文地址:https://meng.horse/thread-83872-1-1.html已经卡了好多天了,请马友指教,万分感谢。
|
-
|