请你回答我在编译我的C程序(VC++ 2008)时的错误--非常感谢你的帮助。注:我的程序是在OPNET建模器14.5和MATLAB之间使用外部仿真控制器C程序进行协同仿真。
这是VC++ 2008命令提示符中的输出错误。
‘First.c Microsoft (R)增量链接器版本9.00.30729.01版权(C) Microsoft Corporation。版权所有。
/out:first.exe first.obj $first.obj : error LNK2019:_main $first.obj中未解析的外部符号_imp_Esa_Interface_Value_Set $referenced : error LNK2019:未解析的外部符号_imp_Esa_Interface_Value $_Get在函数_main $first.obj中引用: error LNK2019:未解析的外部符号_imp_Esa_Execute_Until r $eferenced在function _main _imp_Esa_Execute_Until: error LNK2019:未解析的外部符号在函数_main $first.obj中引用的寄存器:错误LNK2019:函数_main $first.obj中引用的未解析外部符号_imp_Esa_Interface_Group $_Get:_main $first.obj : error LNK2019:未解析外部符号_imp_Esa_Load在函数_main $first.obj中引用了$:错误LNK2019:未解析外部符号引用在函数_main $first.obj中引用了未解析的外部符号_imp_Esa_Init : error LNK2019:未解析的外部符号_imp_Esa_Main在Function$first.obj中引用了$:致命错误:8未解析的外部符号
发布于 2012-08-17 05:52:07
我想您最好使用OPNET提供的命令行工具(如makesim),而不是Visual。由于您的cosim依赖于OPNET报头和库,所以最好编译并链接OPNET工具链。
https://stackoverflow.com/questions/11817951
复制相似问题