Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
36 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

Accepted Solutions
Highlighted
Moderator
36 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

Jesus Garcia, Intel Customer Support

View solution in original post

0 Kudos
4 Replies
Highlighted
Moderator
37 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

Jesus Garcia, Intel Customer Support

View solution in original post

0 Kudos
Highlighted
Employee
36 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
Highlighted
36 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
Highlighted
Employee
36 Views

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

0 Kudos