找回密码
 注册
查看: 2155|回复: 2

[求助]udf编译出错

[复制链接]
发表于 2005-4-9 16:46:14 | 显示全部楼层 |阅读模式

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

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

x
#include "udf.h"
DEFINE_PROFILE(inlet_x_velocity, thread, position)
{
real x[ND_ND];/* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f, thread)
   {
     F_CENTROID(x,f,thread);
     y = x[1];
     F_PROFILE(f, thread, position) = 20. - y*y/(.0745*.0745)*20.;
   }
end_f_loop(f, thread)
}
这是udf程序,在vc++中编译时出错:
fatal error C1083: Cannot open include file: ';udf.h';: No such file or directory
Error executing cl.exe.
我把udf.h拷到udf程序的目录下时,又出现这样的错误:
f:\1\udf.h(23) : fatal error C1083: Cannot open include file: ';global.h';: No such file or directory
Error executing cl.exe.
我现在一头雾水,哪位大虾帮帮忙,udf程序到底怎么编译啊,能否说得详细一些。
先谢谢了!!!
发表于 2005-4-9 21:03:27 | 显示全部楼层

[求助]udf编译出错

设置环境变量!
 楼主| 发表于 2005-4-9 21:24:23 | 显示全部楼层

[求助]udf编译出错

是不是设置vc++的环境变量啊,已经设过了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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