24小时热门版块排行榜    

查看: 580  |  回复: 1

天竺刀锋

新虫 (初入文坛)

[求助] udf编译错误

本人编的udf在fluent编译时遇到以下错误

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 parameter list

为了找出错误,本人把代码改到最简
#include "udf.h"

DEFINE_PROPERTY(cell_density,c,t)
{}
依旧会出现以上错误提示。
请教这是为什么,应该怎样解决,谢谢!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

achilFes1990

木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
你都不把你要做什么,你的代码也不贴上来,怎么分析错误

[ 发自手机版 http://muchong.com/3g ]
扫一扫关注我的微信公众号,共同学习船舶CFD
2楼2013-08-25 07:31:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 天竺刀锋 的主题更新
信息提示
请填处理意见