我是Modelica的新手,我正尝试将我的模型链接到外部socketdll,但我不知道是什么原因导致了错误。函数中指示的文件路径是否错误?谢谢
function constructor
input String ip = "127.0.0.1";
output MySocket SocketClient;
external "C" SocketClient = SocketInitConnect(ip)annotation (Include = "#include \"SocketDll.h\"",
IncludeDirectory = "modelica://exfuncExample/Resources/include",
Library = "SocketDll",
LibraryDirectory = "modelica://exfuncExample/Resources/libs");
end constructor;
Creating library C:\Users\rss0309\Documents\MWorks\Simulation\Machiningcenter.HIL-7\MWSolver.lib and object C:\Users\rss0309\Documents\MWorks\Simulation\Machiningcenter.HIL-7\MWSolver.exp
momodel_func.obj : error LNK2019: unresolved external symbol SocketClose referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_MySocketa_constructor
momodel_func.obj : error LNK2019: unresolved external symbol SocketInitConnect referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_MySocketa_constructor
momodel_func.obj : error LNK2019: unresolved external symbol Parse referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_Findx
momodel_func.obj : error LNK2019: unresolved external symbol SocketReceive referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_rcv
momodel_func.obj : error LNK2019: unresolved external symbol Compact referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_DataCompact
momodel_func.obj : error LNK2019: unresolved external symbol SocketSend referenced in function exfuncExamplea_SocketModelsa_testSocketDlla_Send
C:\Users\rss0309\Documents\MWorks\Simulation\Machiningcenter.HIL-7\MWSolver.dll : fatal error LNK1120: 6 unresolved externals
Linking the model (vc) failed.