|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
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;
}
这怎么回事啊?
|
|