找回密码
 注册
查看: 5177|回复: 5

udf compile不了,紧急求助

[复制链接]
发表于 2006-3-22 15:35:24 | 显示全部楼层 |阅读模式

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

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

x
最近刚学udf,在compile中build的时候,出现如下错误信息:
————————————————————————————————
———————————————————————————————
Deleted old libudf\ntx86\2d\libudf.dll
已复制 1 个文件。
(system "copy D:\FLUENT\Fluent.Inc\fluent6.2.16\src\makefile_nt.udf libudf\ntx86\2d\makefile")已复制 1 个文件。
0
(chdir "libudf")()
(chdir "ntx86\2d")()
cell_x_source.c
# Generating udf_names.c because of makefile cell_x_source.obj
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj cell_x_source.obj
Microsoft (R) 32-Bit Library Manager Version 3.00.5270
Copyright (C) Microsoft Corp 1992-1995. All rights reserved.
LINK : fatal error LNK1181: cannot open input file "fl6216s.lib"
Done.
"c:/documents and settings/administrator"
——————————————————
————————————————————
我的udf用interprete在同学机子上,他没装c编译器,反而能运行,我装Microsoft Visualstidio C++6.0却interprete不行,老说第一行有“Parse error”,
高得我烦得。在我机子上compile也不行。
下面是udf程序
————————————————
————————————————
#include "udf.h"
DEFINE_SOURCE(cell_x_source,cell,thread,dS,eqn)
{
real source;
if(C_T(cell,thread)<=288.)
  {
source=-20.;
dS[eqn]=-20.;
  }
else
  source=dS[eqn]=0.;
return source;
}
这怎么回事啊?
发表于 2006-4-5 17:40:52 | 显示全部楼层

udf compile不了,紧急求助

c里面能用连等?把source=dS[eqn]=0.; 这一句分开写试试?
发表于 2006-4-6 11:00:09 | 显示全部楼层

udf compile不了,紧急求助

把vc重装
发表于 2006-4-9 17:03:14 | 显示全部楼层

udf compile不了,紧急求助

Microsoft (R) 32-Bit Library Manager Version 3.00.5270
Copyright (C) Microsoft Corp 1992-1995. All rights reserved.
说明你用了诸如fortran90或95等其它编译软件,把他们卸掉即可。重装vc++.
发表于 2006-4-26 11:10:49 | 显示全部楼层

udf compile不了,紧急求助

  UDF中compiled时候提示你输入library name 是什么意思?
发表于 2006-5-5 02:16:58 | 显示全部楼层

udf compile不了,紧急求助

首先确认你的文件所在目录没有任何空格,如my document这种形式是不允许的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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