24小时热门版块排行榜    

查看: 1288  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 小崔地盘 的主题更新
信息提示
请填处理意见