fluent吧 关注:17,382贴子:89,900
  • 0回复贴,共1

udf无法编译 求助!

取消只看楼主收藏回复

我是fluent新手,现在编写了一个物性参数拟合函数的udf,却无法编译。为找出问题所在,本人已将udf简化到不能再简化的程度,还是被提示出现以下错误:
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\cortex\src\cx.h(45) : error C2632: 'long' followed by 'long' is illegal
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2887) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\src\storage.h(2892) : error C2010: '.' : unexpected in macro formal paramete
简化后的udf代码:
#include "udf.h"
DEFINE_PROPERTY(cell_density,c,t)
{
}
请指教哪里出现了问题,谢谢!


IP属地:浙江1楼2013-08-24 09:27回复