Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Rong_Z_
Beginner
86 Views

Some Link Error when using sgx_create_report

Hi, 

I'm trying to use sgx_create_report() to create the report for enclave, but it always fails during the build process, showing that some link errors like below:

Error    2    error LNK2019: unresolved external symbol _sgx_is_within_enclave referenced in function _sgx_create_report    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\Enclave\App\sgx_tservice.lib(sgx_create_report.obj)


Error    3    error LNK2019: unresolved external symbol _do_ereport referenced in function _sgx_create_report    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\Enclave\App\sgx_tservice.lib(sgx_create_report.obj)


Error    4    error LNK2019: unresolved external symbol _memset_s referenced in function _sgx_create_report    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\Enclave\App\sgx_tservice.lib(sgx_create_report.obj)


Error    5    error LNK1120: 3 unresolved externals    C:\Users\Administrator\Documents\Visual Studio 2012\Projects\Enclave\Debug\App.exe    

It seems that some library been missed, does anyone have the same problem? And Does anyone have some sample codes which can successfully calling sgx_create_report? Could you please share some sample code with me? 

Thanks,

Rong

 

0 Kudos
1 Reply
86 Views

Hi Rong,

Could you please share the code, will verify and get back.

Thanks and Regrads,

Surenthar Selvaraj

Reply