找回密码
 注册
查看: 2865|回复: 6

UDF的编译

[复制链接]
发表于 2012-9-17 13:41:36 | 显示全部楼层 |阅读模式

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

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

x
各位大侠,各位好汉,新手求教。。。
用compile方式加载C文件后进行编译,出现下面的错误,请问是咋回事???

Deleted old libudf\ntx86\3d\libudf.dll
已复制         1 个文件。
Copied f:\fluent14\cell\e140120/F:\fluent14\cell\E140120\3drotate.c to libudf\src
(system "copy "D:\PROGRA~1\ANSYSI~1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf "libudf\ntx86\3d\makefile" ")
已复制         1 个文件。
(chdir "libudf")()
(chdir "ntx86\3d")()
# Generating ud_io1.h
3drotate.c
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\cortex\src\cx.h(46) : error C2632: 'long' followed by 'long' is illegal
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
D:\PROGRA~1\ANSYSI~1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
Done.
 楼主| 发表于 2012-9-18 08:14:55 | 显示全部楼层

追问

更让我纳闷的是,用fluent6.3可以完整的走完整个过程。低版本的都行,为啥14.0的出问题?
发表于 2012-9-24 13:25:45 | 显示全部楼层

VC的问题

你的C++编译器是哪个版本?ANSYS 14.0 需要Visual Studio 2008以上的编译器。
还有把你的UDF代码贴上来,大家才能发现问题啊~
 楼主| 发表于 2012-9-25 09:19:12 | 显示全部楼层

回复 3# shuai_manlou 的帖子

大侠,05,08版的我都装了
发表于 2012-10-31 11:09:24 | 显示全部楼层
同样错误,14.0 13.0 不能用6.3能用,我的是visual c++ 6.0
发表于 2013-5-15 18:19:07 | 显示全部楼层
楼主不知道这个问题解决了没有?我也遇到同样的问题,求帮助
发表于 2013-5-20 14:36:35 | 显示全部楼层
C2632: 'long' followed by 'long' is illegal
这个错误我也遇到了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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