| 查看: 1897 | 回复: 1 | ||
damin83730银虫 (小有名气)
|
[求助]
udf导入失败,报错:无法解析的外部符号,有没有人遇到过这种情况的,该怎么解决?
|
|
Copied e:\hovering fruit insect wing\wingx\robotfly/E:\hovering fruit insect wing\wingx\robotfly\robofly.c to robofly\src udf_names.c file in 2d is upto date. (system "copy "D:\Program Files\ANSYS Inc\v145\fluent"\fluent14.5.0\src\makefile_nt.udf "robofly\win64\2d\makefile" " ![]() 已复制 1 个文件。 (chdir "robofly" ()(chdir "win64\2d" ()# Linking libudf.dll because of makefile user_nt.udf udf_names.obj robofly.obj Microsoft (R) Incremental Linker Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. 正在创建库 libudf.lib 和对象 libudf.exp robofly.obj : error LNK2019: 无法解析的外部符号 cos,该符号在函数 harmonic 中被引用 robofly.obj : error LNK2019: 无法解析的外部符号 sin,该符号在函数 harmonic 中被引用 robofly.obj : error LNK2001: 无法解析的外部符号 _fltused LINK : error LNK2001: 无法解析的外部符号 _DllMainCRTStartup libudf.dll : fatal error LNK1120: 4 个无法解析的外部命令 udf文件如下: #include "udf.h" #include"math.h" #define PAI 3.14159265358979323846 #define T 40 #define N 15 #define ts 0.14 #define tr 0.3 #define As (70/180*PAI) #define Aa (55/180*PAI) #define Ws (As/(2*ts*T/PAI+0.5*T-ts*T)) #define Wa (Aa/0.5/tr/T) #define Rg 0.1624584 static int n=0; DEFINE_CG_MOTION(harmonic,dt,vel,omega,time,dtime) { real t; t=time/T-n+0.5; if (n<=N) { if ((t>=0)&&(t<=0.5*ts)) vel[0]=Rg*Ws*sin(t*PAI/ts); else if ((t>0.5*ts)&&(t<(0.5-0.5*ts))) vel[0]=Rg*Ws; else if ((t>=(0.5-0.5*ts))&&(t<=(0.5+0.5*ts))) vel[0]=Rg*Ws*sin(PAI/2/ts-PAI/ts*t); else if ((t>(0.5+0.5*ts))&&(t<(1-0.5*ts))) vel[0]=-Ws*Rg; else if ((t>=(1-0.5*ts))&&(t<=1)) vel[0]=Rg*Ws*sin(PAI/ts*t-PAI*ts); if ((t>=0)&&(t<=0.5*tr)) omega[2]=-Wa+Wa*cos(t/tr*2*PAI+PAI); else if ((t>0.5*tr)&&(t<(0.5-0.5*tr))) omega[2]=0; else if ((t>=(0.5-0.5*tr))&&(t<=(0.5+0.5*tr))) omega[2]=Wa-Wa*cos(2*PAI/tr*t-PAI/tr+PAI); else if ((t>(0.5+0.5*tr))&&(t<(1-0.5*tr))) omega[2]=0; else if ((t>=(1-0.5*tr))&&(t<=1)) omega[2]=-Wa+Wa*cos(2*PAI/tr*t-2*PAI/tr+PAI); } if (t==1.0) n+=1; } [ Last edited by damin83730 on 2013-6-3 at 19:21 ] |
» 猜你喜欢
读博
已经有5人回复
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有13人回复
博士申请都是内定的吗?
已经有6人回复
之前让一硕士生水了7个发明专利,现在这7个获批发明专利的维护费可从哪儿支出哈?
已经有5人回复
博士读完未来一定会好吗
已经有29人回复
投稿精细化工
已经有4人回复
高职单位投计算机相关的北核或SCI四区期刊推荐,求支招!
已经有4人回复
导师想让我从独立一作变成了共一第一
已经有9人回复
心脉受损
已经有5人回复
Springer期刊投稿求助
已经有4人回复
sh073
木虫 (正式写手)
- 应助: 42 (小学生)
- 金币: 3739.6
- 散金: 51
- 红花: 4
- 帖子: 475
- 在线: 206.8小时
- 虫号: 1695843
- 注册: 2012-03-16
- 专业: 分离过程
2楼2013-10-31 23:22:33














回复此楼