24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1327  |  回复: 2

小崔地盘

铁虫 (正式写手)

[求助] 555555求助~~~~UDF编译出现错误,求指导,万分感谢!!!

编译UDF时出现以下错误:
Copied F:\my caculation\0.3/F:\my caculation\0.3\1.c to libudf\src
Creating user_nt.udf file for 2d ...
(system "copy "E:\PROGRA~1\ANSYSI~1\v150\fluent"\fluent15.0.0\src\makefile_nt.udf "libudf\ntx86\2d\makefile" "
已复制         1 个文件。
(chdir "libudf"(chdir "ntx86\2d"# Generating ud_io1.h
1.c
# Generating udf_names.c because of makefile 1.obj
udf_names.c
udf_names.c(8) : warning C4113: “void (*)()”和“void (*)(void)”的参数列表不同
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj 1.obj
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

   正在创建库 libudf.lib 和对象 libudf.exp
LIBCMT.lib(onexit.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(crtmboxw.obj) : error LNK2019: 无法解析的外部符号 __imp__DecodePointer@4,该符号在函数 ___crtMessageBoxW 中被引用
LIBCMT.lib(hooks.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(winsig.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(rand_s.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(handler.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(dllcrt0.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(tidtable.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(crt0dat.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(invarg.obj) : error LNK2001: 无法解析的外部符号 __imp__DecodePointer@4
LIBCMT.lib(crtmboxw.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(winsig.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(rand_s.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(handler.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(onexit.obj) : error LNK2019: 无法解析的外部符号 __imp__EncodePointer@4,该符号在函数 __onexit_nolock 中被引用
LIBCMT.lib(cmiscdat.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(tidtable.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(invarg.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
LIBCMT.lib(hooks.obj) : error LNK2001: 无法解析的外部符号 __imp__EncodePointer@4
libudf.dll : fatal error LNK1120: 2 个无法解析的外部命令

Done.

Opening library "F:\my caculation\0.3\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (ntx86).

系统找不到指定的文件。

F:\my caculation\0.3\libudf\\ntx86\2d\libudf.dll

Error: The UDF library you are trying to load (libudf) is not compiled for 2d on the current platform (ntx86).

系统找不到指定的文件。

F:\my caculation\0.3\libudf\ntx86\2d\libudf.dll
Error Object: #f
UDF编码如下:
#include "stdio.h"
#include "udf.h"
#define E 0.01445
#define base 104.72
DEFINE_CG_MOTION(move,dt,cg_vel,cg_omega,time,dtime)
{
NV_S(cg_vel,=,0.0);
NV_S(cg_omega,=,0.0);
cg_vel[0]=E*cos(base*time);
cg_vel[1]=E*sin(base*time);
cg_vel[2]=0;
}
回复此楼

» 猜你喜欢

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

yangxu_1991

新虫 (正式写手)

请问哈楼主解决了这个问题没啊?我也遇到了,急求帮忙
2楼2016-09-28 11:14:26
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

杠上hua三家

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by yangxu_1991 at 2016-09-28 11:14:26
请问哈楼主解决了这个问题没啊?我也遇到了,急求帮忙

你解决好了么,求助啊

发自小木虫Android客户端
3楼2017-12-01 22:26:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 小崔地盘 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿哈尔滨工业大学085600英一数二337分求调剂 +4 lyz0427 2026-04-03 4/200 2026-04-03 23:54 by T可可西里T
[考研] 311求调剂 +11 勇敢的小吴 2026-04-02 11/550 2026-04-03 21:46 by qlm5820
[考研] 319求调剂 +3 星星不眨眼喽 2026-04-03 3/150 2026-04-03 21:45 by zhq0425
[考研] 0710生物学336分求调剂 +5 kiyy 2026-04-01 5/250 2026-04-03 21:35 by kk112233
[考研] 372分材料与化工(085600)一志愿湖南大学求调剂 +3 蓝笺片 2026-04-03 4/200 2026-04-03 17:58 by Jimmyandyou
[考研] 考研调剂 +3 Draa 2026-04-03 3/150 2026-04-03 17:37 by hgwz7468
[考研] 工科 267求调剂 +5 wanwan00 2026-04-02 7/350 2026-04-03 14:14 by zhangdingwa
[考研] 266求调剂 +3 08电气工程 2026-04-03 3/150 2026-04-03 14:05 by 1753564080
[考研] 368求调剂 +4 今华习 2026-04-03 6/300 2026-04-03 13:46 by 今华习
[考研] 求调剂 +9 akdhjs 2026-03-31 11/550 2026-04-03 13:32 by akdhjs
[考研] 建环,能源,土木老师路过看一看!!! +5 嘿嘿uu 2026-04-01 5/250 2026-04-03 11:47 by znian
[考研] 08工科275分求调剂 +14 AaAa7420 2026-03-31 14/700 2026-04-03 11:13 by cocolv
[考研] 085801 总分275 本科新能源 求调剂 +19 bradoner 2026-04-01 23/1150 2026-04-03 10:07 by linyelide
[考研] 一志愿武汉理工0856,初试334 +3 26考研材料 2026-04-02 3/150 2026-04-02 21:22 by dongzh2009
[考研] 085602化工求调剂(331分) +9 111@127 2026-03-30 9/450 2026-04-02 20:00 by dick_runner
[考研] 266求调剂 +4 学员97LZgn 2026-04-02 4/200 2026-04-02 13:03 by yulian1987
[考研] 350求调剂 +7 阿佳~ 2026-03-31 7/350 2026-04-01 16:12 by yanflower7133
[考研] 求调剂:085600材料与化工,考材科基,总分319 +17 678lucky 2026-03-31 21/1050 2026-04-01 01:40 by 1018329917
[考研] 254材料与化工求调剂 +3 翰冬林楠 2026-03-30 4/200 2026-03-31 17:53 by yishunmin
[考研] 物理学调剂 +4 小羊36 2026-03-30 4/200 2026-03-31 16:16 by lishahe
信息提示
请填处理意见