OPNET仿真中的问题
OPNET仿真中的问题-Aloha & 包交换
记录一下仿真中出现的情况。
第一次安装时
第一次比较草率了 = = win10+vs2015
include类型问题
解决方法:添加环境变量。
- .h 文件:在include中添加(\windows kits\10…)
- LINK : fatal error LNK1104: cannot open file ‘XXX.lib’: 添加在lib中
然后出现了unable to read …
<<< Recoverable Error >>>
Unable to read result collection file (cct_network-aloha)
T (0), EV (-), MOD (NONE), PROC (sim_load_models)
<<< Recoverable Error >>>
Object repository construction failed
due to errors encountered by the binder program (bind_so_msvc)
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_rebuild)
Errors reported by the binder program follow
(these messages have been saved in (C:\Users\PVer\op_admin\tmp\bind_err_10456):
Creating library C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.lib and object C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.exp
op_win_stdio_patch.obj : error LNK2019: unresolved external symbol __imp__setvbuf referenced in function _op_win_stdio_patch
op_win_stdio_patch.obj : error LNK2001: unresolved external symbol __imp___iob
oms_dist_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol _strcmp
oms_string_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol _strcmp
aloha_tx.dev32.i0.pr.obj : error LNK2001: unresolved external symbol _strcmp
cct_rx.dev32.i0.pr.obj : error LNK2001: unresolved external symbol _strcmp
simple_source.dev32.i0.pr.obj : error LNK2001: unresolved external symbol _strcmp
sink.dev32.i0.pr.obj : error LNK2001: unresolved external symbol _strcmp
oms_dist_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vsprintf
aloha_tx.dev32.i0.pr.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vsprintf
cct_rx.dev32.i0.pr.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vsprintf
simple_source.dev32.i0.pr.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vsprintf
sink.dev32.i0.pr.obj : error LNK2001: unresolved external symbol __imp____stdio_common_vsprintf
simple_source.dev32.i0.pr.obj : error LNK2019: unresolved external symbol __imp__ceil referenced in function _ss_packet_generate
dbu_error.dev32.i0.ps.obj : error LNK2019: unresolved external symbol _exp referenced in function _dbu_error_mt
oms_dist_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol _exp
dbu_error.dev32.i0.ps.obj : error LNK2019: unresolved external symbol _log referenced in function _dbu_error_mt
oms_dist_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol _log
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _strcat referenced in function _oms_dist_outcome_threshold_reached_with_error_msg
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _strcpy referenced in function _oms_dist_load_from_string
oms_string_support.dev32.i0.ex.obj : error LNK2001: unresolved external symbol _strcpy
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp__strtok referenced in function _oms_dist_parameters_get
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _cos referenced in function _oms_dist_normal_box_mueller_outcome
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _pow referenced in function _oms_dist_pareto_outcome
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _sqrt referenced in function _oms_dist_lognormal_parameters_get
oms_dist_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp____stdio_common_vsscanf referenced in function __vsscanf_l
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp__isspace referenced in function _oms_string_leading_and_trailing_spaces_remove
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __errno referenced in function _oms_string_to_int
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp___stricmp referenced in function _oms_string_compare
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol _strlen referenced in function _oms_string_leading_and_trailing_spaces_remove
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp__strncpy referenced in function _oms_string_compare
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp__atof referenced in function _oms_string_to_double_unlocalize
oms_string_support.dev32.i0.ex.obj : error LNK2019: unresolved external symbol __imp__strtol referenced in function _oms_string_to_int
msvcrt.lib(ftol3.obj) : error LNK2019: unresolved external symbol __except1 referenced in function __ftol3_except
msvcrt.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__UnhandledExceptionFilter@4 referenced in function ___raise_securityfailure
msvcrt.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__UnhandledExceptionFilter@4
msvcrt.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__SetUnhandledExceptionFilter@4 referenced in function ___raise_securityfailure
msvcrt.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp__SetUnhandledExceptionFilter@4
msvcrt.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentProcess@0 referenced in function ___raise_securityfailure
msvcrt.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp__TerminateProcess@8 referenced in function ___raise_securityfailure
msvcrt.lib(gs_report.obj) : error LNK2019: unresolved external symbol _IsProcessorFeaturePresent@4 referenced in function ___report_gsfailure
msvcrt.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol _IsProcessorFeaturePresent@4
msvcrt.lib(cpu_disp.obj) : error LNK2001: unresolved external symbol _IsProcessorFeaturePresent@4
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol initterm referenced in function “int cdecl dllmain_crt_process_attach(struct HINSTANCE * const,void * const)” (?dllmain_crt_process_attach@@YAHQAUHINSTANCE@@QAX@Z)
msvcrt.lib(dll_dllmain.obj) : error LNK2019: unresolved external symbol initterm_e referenced in function “int cdecl dllmain_crt_process_attach(struct HINSTANCE * const,void * const)” (?dllmain_crt_process_attach@@YAHQAUHINSTANCE@@QAX@Z)
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __seh_filter_dll referenced in function ___scrt_dllmain_exception_filter
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __configure_narrow_argv referenced in function “public: static int __cdecl __scrt_narrow_argv_policy::configure_argv(void)” (?configure_argv@__scrt_narrow_argv_policy@@SAHXZ)
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_narrow_environment referenced in function ___scrt_dllmain_after_initialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __initialize_onexit_table referenced in function ___scrt_initialize_onexit_tables
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __register_onexit_function referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __execute_onexit_table referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_atexit referenced in function __onexit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __crt_at_quick_exit referenced in function _at_quick_exit
msvcrt.lib(utility.obj) : error LNK2019: unresolved external symbol __cexit referenced in function ___scrt_dllmain_uninitialize_c
msvcrt.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__QueryPerformanceCounter@4 referenced in function ___security_init_cookie
msvcrt.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentProcessId@0 referenced in function ___security_init_cookie
msvcrt.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetCurrentThreadId@0 referenced in function ___security_init_cookie
msvcrt.lib(gs_support.obj) : error LNK2019: unresolved external symbol __imp__GetSystemTimeAsFileTime@4 referenced in function ___security_init_cookie
msvcrt.lib(dll_dllmain_stub.obj) : error LNK2019: unresolved external symbol __imp__DisableThreadLibraryCalls@4 referenced in function _DllMain@12
msvcrt.lib(tncleanup.obj) : error LNK2019: unresolved external symbol __imp__InitializeSListHead@4 referenced in function “void __cdecl __scrt_initialize_type_info(void)” (?__scrt_initialize_type_info@@YAXXZ)
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp__IsDebuggerPresent@0 referenced in function ___scrt_fastfail
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp__GetStartupInfoW@4 referenced in function ___scrt_get_show_window_mode
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp__GetModuleHandleW@4 referenced in function ___scrt_is_managed_app
msvcrt.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol _terminate referenced in function ___scrt_unhandled_exception_filter@4
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64\kernel32.lib : warning LNK4272: library machine type ‘x64’ conflicts with target machine type ‘X86’
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\ucrt\x64\ucrt.lib : warning LNK4272: library machine type ‘x64’ conflicts with target machine type ‘X86’
C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.dll : fatal error LNK1120: 48 unresolved externals
//哔了狗……
最后一共有48个无法读取的外部函数,我估计还是环境变量问题。挑一个软柿子捏,把环境变量lib里的x64改成x86
问题减少了……成了这样:
<<< Recoverable Error >>>
Object repository construction failed
due to errors encountered by the binder program (bind_so_msvc)
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_rebuild)
Errors reported by the binder program follow
(these messages have been saved in (C:\Users\PVer\op_admin\tmp\bind_err_5432):
Creating library C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.lib and object C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.exp
op_win_stdio_patch.obj : error LNK2001: unresolved external symbol __imp___iob
C:\Users\PVer\op_models\cct_network.project\cct_network-aloha.dev32.i0.nt.dll : fatal error LNK1120: 1 unresolved externals
<<< Program Abort >>>
Error encountered rebuilding repository – unable to proceed
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load)
查了一下__imp___iob(懒得找,一定有别的人找过23333),看到
LNK2001: 无法解析的外部符号 __iob问题的解决方法这一篇和error LNK2019: 无法解析的外部符号 __imp____iob_func这一篇还有[解决方案]vs2015无法解析外部符号__imp__fprintf和__imp____iob_func。然而都是关于__imp___iob_func的。
__imp___iob应该是编译器的问题,思考人生
果然还是需要重装啊
第二次安装
win10+vs2013,顺便一提还有一个安装虚拟机的建议我jio得不错——笔记本就决定这么解决了!
【笔记本安装的问题是,打开opnet 提示 invalid memory access】
然后Aloha就仿真成功了(PC)。
包交换的例子,直接运行教程里的model(OPNET安装路径\14.5.A\models\tutorial_ref)可以通过,但是自己做一遍就出现了错误:
<<< Recoverable Error >>>
Object repository construction failed
due to errors encountered by the binder program (bind_so_msvc)
Errors reported by the binder program follow
(these messages have been saved in (C:\Users\PVer\op_admin\tmp\bind_err_12220):
正在创建库 D:\OPNET\14.5.A\sys\lib\ch06_pksw_net.project\ch06_pksw_net-base.dev32.i0.nt.lib 和对象D:\OPNET\14.5.A\sys\lib\ch06_pksw_net.project\ch06_pksw_net-base.dev32.i0.nt.exp
dpt_propdel_bgutil.dev32.i0.ps.obj : error LNK2019: 无法解析的外部符号_oms_pipeline_prop_delay_calc,该符号在函数 _dpt_propdel_bgutil中被引用
D:\OPNET\14.5.A\sys\lib\ch06_pksw_net.project\ch06_pksw_net-base.dev32.i0.nt.dll : fatal error LNK1120: 1 个无法解析的外部命令
<<< Program Abort >>>
Error encountered rebuilding repository – unable to proceed
T (0), EV (-), MOD (NONE), PROC (sim_load_repos_load)
看到error LNK2019就头痛
网上搜到 _dpt_propdel_bgutil跟链路有关【后来打开链路编辑器看到这就是我在propdel model中选择的】
对比了教程和我的设置,发现是链路编辑器中,propdel model属性【传播时延模型】选错了。我选择了dpt_propdel_bgutil,应该是dpt_propdel【point-to-point propagation delay model,端到端传播时延模型】。以及接下来的txdel model【发送时延模型】选择dpt_txdel。
补充一下仿真结果查看
直接view results 就好,看不到就打开所有project
OPNET仿真中的问题相关推荐
- modelsim仿真中 do文件的写法技巧
Modelsim之 DO文件简介 网上的关于DO文件的编写好像资料不多,比较杂,所以本人总结一下常用的简单语法,方便大家查看.其实本人也刚接触DO文件没多久,有纰漏很正常,欢迎指正批评,互相学习.PS ...
- 3 设置网格数的大小_流体仿真中,六面体(Hex)网格的求解效率真的比四面体(Tet)高”很多”么?...
流体仿真中,六面体(Hex)网格与四面体(Tet)网格的争论一直伴随着整个CFD的发展过程,坊间也流传着许许多多关于六面体网格.结构化网格.四面体网格.甚至是Cutcell网格等相关内容的种类繁多的观 ...
- matlab在伪随机码,MATLAB在伪随机码的生成及仿真中的应用
第21卷 第3期计 算 机 仿 真2004年3月 文章编号:1006-9348(2004)03-0149-04 MAT LAB在伪随机码的生成及仿真中的应用 郭海燕,毕红军 (北方交通大学电子信息工程 ...
- PROBOT_G603双臂GAZEBO+MoveIt!仿真中配置手眼相机和夹爪
PROBOT_G603双臂GAZEBO+MoveIt!仿真中配置手眼相机和夹爪 问题描述 安装双臂模型 修改urdf文件 Gripper文件修改 Gripper添加到机械臂上 配置MoveIt! 配置 ...
- 流体仿真中,六面体(Hex)网格的求解效率真的比四面体(Tet)高”很多”么?
作者 | 张杨 流体仿真中,六面体(Hex)网格与四面体(Tet)网格的争论一直伴随着整个CFD的发展过程,坊间也流传着许许多多关于六面体网格.结构化网格.四面体网格.甚至是Cutcell网格等相关内 ...
- 开关电源matlab仿真文件,《MATLAB+在开关电源仿真中的应用.pdf》-支持高清全文免费浏览-max文档...
您所在位置:网站首页 > 海量文档  > 计算机 > matlab MATLAB+在开关电源仿真中的应用.pdf3页 ...
- matlab motor,MATLAB在电机仿真中的应用 Application of MATLAB in motor simulation.pdf
MATLAB在电机仿真中的应用 Application of MATLAB in motor simulation 2009年第3l卷 电气传动自动化 V01.31.No.4 DRIVE 2009.3 ...
- [VCS]后仿真中的几个基本概念
后仿真中的几个基本概念 网表: 网表是逻辑电路设计转化为物理实现的工作产品,网表可以有各种抽象级,例如门级网表和晶体管级网表.门级网表通常用于数字电路,晶体管级网表通常用于模拟电路. 门级网表 门级网 ...
- matlab中画出3d船舶,船舶运动仿真中航迹与船形图的应用(上)
船舶运动仿真中航迹与船形图的应用(上) 在船舶运动控制领域,数字仿真是较为通用的研究手段.为什么?这与问题的复杂性不无关系.我们知道,对航行在气象条件多变的海洋环境下的船舶动态进行较深入的研究,并且要 ...
- 基于MATLAB/Simulink软件的单相光伏并网逆变器仿真,仿真中使用两级电路,前级BOOST升压后级光伏逆变并网
基于MATLAB/Simulink软件的单相光伏并网逆变器仿真,仿真中使用两级电路,前级BOOST升压后级光伏逆变并网,建立了光伏电池(PV)模型,同时搭建了两种最大功率点跟踪算法(MPPT),扰动观 ...
最新文章
- 序列拼接工具Bowtie使用说明
- djngo快速实现--使用Bootstrap
- java float x=26f_东软java笔试题
- VTK:可视化之ColorAnActor
- python案例源码_【python】python实例集一
- mongodb创建数据库用户名和密码_Linux运维老司机,教你MongoDB 的不同连接方式
- 怎么快速搭建属于自己的博客
- 10分钟搭建服务器集群——Windows7系统中nginx与IIS服务器搭建集群实现负载均衡...
- fopen java_fopen()函数
- linux输入法变成乱码,Linux ibus输入法五笔打字的时候出现乱码框框的解决方案
- js基础-9-正则表达式
- .NET WPF教程(1)——基础
- 单溶水箱串级控制计算机控制,单容水箱串级控制系统.doc
- Safari浏览器兼容性问题处理
- 怎样复制秀米html码,来,今天学习秀米的“复制粘贴”快捷键~
- python MySQLdb 一个连接connection多个cursor
- #199-【莫队】小Z的袜子
- 全攻略:实现pynq-z2条形码识别
- vue点击实现箭头的向上与向下
- js实现网页中英文翻译
热门文章
- 红米k30pro刷机鸿蒙,红米k30pro最严重缺点_红米k30pro建不建议买
- 使用ffmpeg将ASS字幕打进视频流中
- Redis下载与安装 详细教程
- visio 连接线样式设置 如箭头线
- python生成随机姓名
- python输出姓名_如何用Python生成若干个随机姓名?男女取名有方法,不能千篇一律...
- SteamVR简介(Yanlz+Steam+VR+Unity+AR+MR+XR+=)
- LeetCode 69. x 的平方根
- 认识RAW修图基础知识
- 文本去重方法——SimHash