24小时热门版块排行榜    

查看: 1419  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 小崔地盘 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 为什么国自然不能直接公布 +5 bjdxyxy 2026-08-26 5/250 2026-09-01 17:54 by 小伟大博士
[基金申请] 学科评审组评审是指会评吗? +4 瞬息宇宙 2026-08-31 4/200 2026-09-01 14:58 by jiaoxg
[基金申请] 面上合作单位盖章 +5 ssyjh 2026-08-27 8/400 2026-09-01 12:58 by ssyjh
[基金申请] 面上函评意见出来了,像什么等级? 20+4 Tsingking1 2026-08-27 15/750 2026-09-01 12:23 by icm639
[论文投稿] 小白求助 投论文要求的highlights应该如何写 5+3 l1963982152 2026-08-29 4/200 2026-09-01 09:04 by 北京莱茵编辑
[基金申请] 怎么看青基中了没有啊 +6 叶九微 2026-08-26 6/300 2026-08-31 23:54 by yudaoqian88
[基金申请] 国社科又开始会评了,不知道这次命运如何 +7 雨打竹帘 2026-08-30 11/550 2026-08-31 23:16 by hittle2008
[基金申请] 投票:  有多少人是今天查系统知道结果的? +17 爱看书的可乐 2026-08-26 19/950 2026-08-31 21:30 by xiangy672
[基金申请] 基金未中,这种答复是模板吗? +6 zhaosm1982 2026-08-27 7/350 2026-08-31 21:18 by qdxxmc
[基金申请] 为什么到现在没收到通知? +5 tannykie 2026-08-29 5/250 2026-08-30 21:05 by purplejack
[基金申请] 我就是申请一个面上项目而已,这评审意见是按照杰青的条件评的吧? +6 gouxfjh 2026-08-28 11/550 2026-08-30 07:57 by gouxfjh
[基金申请] 2026年叶企孙基金 +4 bud_bud 2026-08-27 7/350 2026-08-29 07:23 by foolishmani
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[基金申请] 为什么 国际(地区)合作与交流项目 没有放榜? 10+3 majunge000 2026-08-26 11/550 2026-08-27 08:42 by 北京莱茵编辑
[基金申请] 2026年8月25日国自然放榜前突然收到列入评审专家邮件,有关系吗? +25 木水思豆 2026-08-25 28/1400 2026-08-26 14:53 by draco1987
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 国合里面能看到了 +7 一怀馨秋 2026-08-26 7/350 2026-08-26 11:23 by zhaosm1982
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 项目信息和经费信息在系统里都可以看到了 +6 wittyboy 2026-08-26 14/700 2026-08-26 10:55 by wittyboy
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
信息提示
请填处理意见