0

please I would like you to answer me about that error when I compiled my C program(VC++ 2008) Thank you very, I would appreciate any help .. Note :my program is to perform cosimulation between OPNET modeler 14.5 and MATLAB by using external cosimulation controller C program ....

this is output error in VC++ 2008 command prompt

`first.c Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved.

/out:first.exe first.obj $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Value_Set $referenced in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Value $_Get referenced in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Execute_Until r $eferenced in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Callb $ack_Register referenced in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Interface_Group $_Get referenced in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Load referenced $ in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Init referenced $ in function _main $first.obj : error LNK2019: unresolved external symbol _imp_Esa_Main referenced $ in function _main $first.exe : fatal error LNK1120: 8 unresolved externals`

4

1 回答 1

0

我想您最好使用 OPNET 提供的命令行工具(例如 makesim),而不是 Visual Studio。由于您的 cosim 依赖于 OPNET 头文件和库,因此最好使用 OPNET 工具链进行编译和链接。

于 2012-08-17T05:52:07.527 回答