Use of ClientSecurityInfo::initializePkiProviderWindows compiles but fails to link.
Posted: 01 Mar 2021, 17:21
Hello,
I am using
Unified Automation UA SDK C++ Bundle PubSub 1.7.3 (Evaluation Edition)
I've been evaluating this and things have been going will when using
the PkiProviderOpenSSL. However, when I come to try and use
ClientSecurityInfo::initializePkiProviderWindows
I get a linker error:
Error LNK2019 unresolved external symbol "public: class UaStatusCode __cdecl UaClientSdk::ClientSecurityInfo::initializePkiProviderWindows(enum WindowsStoreLocation,class UaString const &)" (?initializePkiProviderWindows@ClientSecurityInfo@UaClientSdk@@QEAA?AVUaStatusCode@@W4WindowsStoreLocation@@AEBVUaString@@@Z) referenced in function "public: class UaStatus __cdecl Configuration::setupSecurity(class UaClientSdk::SessionSecurityInfo &)" (?setupSecurity@Configuration@@QEAA?AVUaStatus@@AEAVSessionSecurityInfo@UaClientSdk@@@Z) MyOPCUAClient4 C:\dev\OPCUA\MyOPCUAClient4\configuration.obj 1
The same error occurs if I add OPCUA_SUPPORT_PKI_WIN32 to the preprocessor definitions in the example project "pubsubimporter" and try and build that.
Any suggestions please as to what could be wrong?
Thank you
Simon
I am using
Unified Automation UA SDK C++ Bundle PubSub 1.7.3 (Evaluation Edition)
I've been evaluating this and things have been going will when using
the PkiProviderOpenSSL. However, when I come to try and use
ClientSecurityInfo::initializePkiProviderWindows
I get a linker error:
Error LNK2019 unresolved external symbol "public: class UaStatusCode __cdecl UaClientSdk::ClientSecurityInfo::initializePkiProviderWindows(enum WindowsStoreLocation,class UaString const &)" (?initializePkiProviderWindows@ClientSecurityInfo@UaClientSdk@@QEAA?AVUaStatusCode@@W4WindowsStoreLocation@@AEBVUaString@@@Z) referenced in function "public: class UaStatus __cdecl Configuration::setupSecurity(class UaClientSdk::SessionSecurityInfo &)" (?setupSecurity@Configuration@@QEAA?AVUaStatus@@AEAVSessionSecurityInfo@UaClientSdk@@@Z) MyOPCUAClient4 C:\dev\OPCUA\MyOPCUAClient4\configuration.obj 1
The same error occurs if I add OPCUA_SUPPORT_PKI_WIN32 to the preprocessor definitions in the example project "pubsubimporter" and try and build that.
Any suggestions please as to what could be wrong?
Thank you
Simon