Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Fatal error LNK1181

Maldonado__Roberto
1,850 Views

1>------ Build started: Project: Enclave, Configuration: Debug x64 ------ 1>LINK : fatal error LNK1181: cannot open input file 'sgx_tstdcxx.lib' OS Windows 10 Pro Visual Studio Professional 2015 -Version 14.0.25431.01 SGX SDK 2.5.101.3

0 Kudos
1 Solution
JesusG_Intel
Moderator
1,850 Views

Hello Roberto,

The file sgx_tstdcxx.lib is not part of the SDK. There are two files named sgx_tstd.lib and sgx_tcxx.lib. Make sure your Enclave -> Properties -> Linker -> Input -> Additional Dependencies reads something like this

sgx_trts.lib;sgx_tstdc.lib;sgx_tservice.lib;sgx_tcxx.lib;sgx_tcrypto.lib

Regards,

Jesus

View solution in original post

0 Kudos
4 Replies
JesusG_Intel
Moderator
1,851 Views

Hello Roberto,

The file sgx_tstdcxx.lib is not part of the SDK. There are two files named sgx_tstd.lib and sgx_tcxx.lib. Make sure your Enclave -> Properties -> Linker -> Input -> Additional Dependencies reads something like this

sgx_trts.lib;sgx_tstdc.lib;sgx_tservice.lib;sgx_tcxx.lib;sgx_tcrypto.lib

Regards,

Jesus

0 Kudos
Junli_S_Intel
Employee
1,850 Views
sgx_tstdcxx.lib has been removed from version 2.1, so in the latest SDK version, please use sgx_tstd.lib and sgx_tcxx.lib
0 Kudos
Maldonado__Roberto
1,850 Views
Thanks! that worked. I used sgx_tstdc.lib as suggested by Garcia. Was getting the same error with sgx_tstd.lib not sure if this was a typo.
0 Kudos
Junli_S_Intel
Employee
1,850 Views

Yes, it is one typo. It should be sgx_tstdc.lib

0 Kudos
Reply