We use SGX SDK for our software. So far we didn't have any issues with Intel SGX SDK till v18.104.22.168281. When we build our software using SGX SDK (22.214.171.124339) following linker errors from the one of the SGX library (sgx_trts.lib)
1>sgx_trts.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_iat_table
1>sgx_trts.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_iat_count
1>sgx_trts.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_longjmp_table
1>sgx_trts.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_longjmp_count
Could you please someone tell me which library we need to include to resolve the above linker issues.
Our software targeted for Win10 - 64bit
Thanks in advance.
We are using Visual Studio 2013 for building our software.
Hope setting C/C++ --> Code Generation --> Control Flow Guard to "/guard:cf" will solve this issue. But we need make changes in the project settings to compile on VC2015/VC2017 as this "/guard:cf" switch/option is not available in the VC2013.
Please let us know is there anyway we can build our software using VC2013. If not then we have to move to VC2015/VC2017.
Thanks & Regards,
Unfortunately, support for Visual Studio 2013 was removed in SGX SDK v126.96.36.199339, as noted in the release notes. Support for VS2017 was added at the same time. We would recommend upgrading to VS2017.