Community
cancel
Showing results for 
Search instead for 
Did you mean: 
399 Views

Fatal error LNK1181

Jump to solution

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

Tags (1)
0 Kudos
1 Solution
JesusG_Intel
Moderator
399 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

4 Replies
JesusG_Intel
Moderator
400 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

Junli_S_Intel
Employee
399 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
399 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.
Junli_S_Intel
Employee
399 Views

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

Reply