Was this fixed with #2874 ? I tested again recently and I'm still coming up with the same unresolved symbols
Unresolved external symbol errors
Description
I'm running into issues with trying to build a simple server with the AMALGAMATION flag enabled. It gives me these linking errors despite linking the open62541.lib
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>myServer.obj : error LNK2019: unresolved external symbol UA_ServerConfig_new_default referenced in function main
1>myServer.obj : error LNK2019: unresolved external symbol UA_ServerConfig_delete referenced in function main
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_DateTime_now referenced in function UA_random_seed
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_DateTime_localTimeUtcOffset referenced in function UA_CertificateVerification_AcceptAll
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_DateTime_nowMonotonic referenced in function UA_Server_run_iterate
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_ServerNetworkLayerTCP referenced in function UA_ServerConfig_addNetworkLayerTCP
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_ClientConnectionTCP referenced in function UA_ClientConfig_setDefault
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_ClientConnectionTCP_poll referenced in function UA_ClientConnectionTCP_poll_callback
1>open62541.lib(open62541.obj) : error LNK2019: unresolved external symbol UA_ClientConnectionTCP_init referenced in function UA_ClientConfig_setDefault
1>C:\Users\SESA538878\Downloads\open62541SINGLE2\open62541-master\build\x64\Debug\OPCUASINGLE.exe : fatal error LNK1120: 9 unresolved externals
I'm not too sure where I'm going wrong.
Used CMake options:
bash
cmake -DUA_NAMESPACE_ZERO=<amalgamation on>
</amalgamation>
Checklist
Please provide the following information:
- [x] open62541 Version (release number or git tag): master
- [x] Operating system: Windows
该提问来源于开源项目:open62541/open62541
- 点赞
- 写回答
- 关注问题
- 收藏
- 复制链接分享
- 邀请回答