找回密码
 注册
查看: 7597|回复: 10

cfx5mkext怎么还出这种问题?

[复制链接]
发表于 2006-5-18 10:11:29 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
已经在“环境变量”里设了一个变量Lib,其值为C:\Program Files\Ansys Inc\CFX\CFX-10.0\lib\winnt,可是运行cfx5mkext的时候还出现下面的问题?提示什么';Link';不在路径里,是怎么回事?请高手指教,谢谢。
C:\Program Files\Microsoft Visual Studio\DF98\BIN>cfx5mkext PipeValve_inlet.F
df -MD -fpp:-m -include:"C:\Program Files\Ansys Inc\CFX\CFX-10.0\include" -objec
t:winnt\\PipeValve_inlet.o -c PipeValve_inlet.F
Compaq Visual Fortran Optimizing Compiler Version 6.5
Copyright 2000 Compaq Computer Corp. All rights reserved.
Compaq (R) Fortran Preprocessor Version 6.5-18
Copyright 2000 Compaq Computer Corporation.
PipeValve_inlet.i
df -threads -dll:.\winnt\\PipeValve_inlet.dll winnt\\PipeValve_inlet.o C:\Progra
m Files\Ansys Inc\CFX\CFX-10.0\lib\winnt\solver-pvm.lib
Compaq Visual Fortran Optimizing Compiler Version 6.5
Copyright 2000 Compaq Computer Corp. All rights reserved.
df: error: File ';link'; not in path
An error has occurred in cfx5mkext:
df exited with return code 1.
发表于 2006-5-18 19:46:19 | 显示全部楼层

cfx5mkext怎么还出这种问题?

让我们一起来分析一下〉〉
先看一看,你当前PipeValve_inlet.F文件所在目录下是否多了一个文件夹winnt?
发表于 2006-5-18 20:03:28 | 显示全部楼层

cfx5mkext怎么还出这种问题?

比较一下:
Compaq (R) Fortran Preprocessor Version 6.5-18
Copyright 2000 Compaq Computer Corporation.
PipeValve_inlet.i
df -threads -dll:.\winnt\\PipeValve_inlet.dll winnt\\PipeValve_inlet.o C:\Progra
m Files\Ansys Inc\CFX\CFX-10.0\lib\winnt\solver-pvm.lib
Compaq Visual Fortran Optimizing Compiler Version 6.5
Copyright 2000 Compaq Computer Corp. All rights reserved.
Microsoft (R) Incremental Linker Version 6.00.8447
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
/entry:_DllMainCRTStartup@12
/ignore:505
/debugtype:cv
/debug:minimal
/pdb:none
说明你的Microsoft (R) Incremental Linker 没有找到,在cmd里输入path回车,看其列出的目录里有没有你的fortran链接程序(df.exe)所在的目录,如果没有就是这个问题了。[br][br][以下内容由 bioExplore 在 2006年05月18日 08:04pm 时添加] [br]
上面列出的是我运行cfx5mkext时的显示。
发表于 2006-5-18 22:27:23 | 显示全部楼层

cfx5mkext怎么还出这种问题?

安装vc,和vf时应该保证环境变量同时得到更新
 楼主| 发表于 2006-5-19 08:27:25 | 显示全部楼层

cfx5mkext怎么还出这种问题?

是多了一个文件夹,并且下面还有一个PipeValve_inlet.o的文件。
刚才查了一下path,下面df.exe所在的文件夹C:\Program Files\Microsoft Visual Studio\DF98\BIN,可是还是出了上面那样的问题。
[br][br][以下内容由 slurry 在 2006年05月19日 08:58am 时添加] [br]
刚才把含有link的那个文件夹也加到path里面去了,现在又出了这样的问题。
df could not be started, or exited with return code 255:.
简直快晕了。
发表于 2006-5-22 10:31:11 | 显示全部楼层

cfx5mkext怎么还出这种问题?

再看一下系统环境变量里有没有lib变量!
 楼主| 发表于 2006-5-22 12:34:02 | 显示全部楼层

cfx5mkext怎么还出这种问题?

有,已经建立了一个lib变量,现在变量的值是"C:\Program Files\Ansys Inc\CFX\CFX-10.0\lib\winnt",也就是包含solver-pvm.lib的这个文件夹,可是现在还是出同样的问题,说 df could not be started, or exited with return code 255:.[br][br][以下内容由 slurry 在 2006年05月22日 02:52pm 时添加] [br]
终于搞定了,就是环境变量的问题。虽然我不知道怎么去弄环境变量,不过我重新装了两遍VF,中间有一个提示问是否更新环境变量,点了是,再cfx5mkext PipeValve_inlet.F就什么事也没有了。唉,这么点破事,搞了好几天。在这里感谢给予过帮助的朋友们。谢谢。
发表于 2006-5-23 14:10:26 | 显示全部楼层

cfx5mkext怎么还出这种问题?

搞定就好,大家一起讨论挺好的
发表于 2012-7-10 15:44:49 | 显示全部楼层

回复 1# slurry 的帖子

您好,我也在用cfx5mkext命令,我是初学者,有些东西还不是很熟,就是在做CFX中自带的教程chapter 19: Air Condition Simulation这一例子时,在19.5.3中说由tool-command editor输入!system("cfx5mkext TStat_Control.F")==0 or die "cfx5mkext faild";-process后会跳出
ERROR
CCL parser failed with message:
Perl Syntax errors detected:
syntax error at (eval 75) line 2, near ""cfx5mkext failed"
$cclmain::p2"
不知是怎么回事
然后试了另一种方法,就是直接从Launcher-tool-command line打开cmd.exe,输入•        cfx5mkext TStat_Control.F,就会出现下面的错误
A  fatal error has occurred in cfx5mkext:
The compiler command "ifort" could not be found. Please ensure that the compiler is on your PATH and try again.
这个问题困扰了我好几天了,看了网上好多帖子,都不知所云,希望可以得到解决,非常着急!!
我用的是Ansys 13.0, Compaq Visua lFortran Professional 6.5
发表于 2012-7-10 15:48:51 | 显示全部楼层

CFX导入Fortran程序中遇到的一个棘手问题

在做CFX中自带的教程chapter 19: Air Condition Simulation这一例子时,在19.5.3中说由tool-command editor输入!system("cfx5mkext TStat_Control.F")==0 or die "cfx5mkext faild";-process后会跳出
ERROR
CCL parser failed with message:
Perl Syntax errors detected:
syntax error at (eval 75) line 2, near ""cfx5mkext failed"
$cclmain::p2"
不知是怎么回事
然后试了另一种方法,就是直接从Launcher-tool-command line打开cmd.exe,输入•        cfx5mkext TStat_Control.F,就会出现下面的错误
A  fatal error has occurred in cfx5mkext:
The compiler command "ifort" could not be found. Please ensure that the compiler is on your PATH and try again.
这个问题困扰了我好几天了,看了网上好多帖子,都不知所云,希望有高手指点迷津,感激不尽!!!非常着急!!
我用的是Ansys 13.0, Compaq Visua lFortran Professional 6.5,不知是不是软件不匹配还是有些设置没有设,还望各位高手指教!不甚感激
发表于 2014-1-3 15:40:38 | 显示全部楼层
我也遇到同样的问题!一直得不到解决
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表