Intel Confidential Computing
Discussion board focused on Intel Confidential Computing technologies and how they can protect data and AI security, privacy, and sovereignty.

Some Link Error when using sgx_create_report

Rong_Z_
Débutant
2 262 Visites

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 Compliments
1 Répondre
Surenthar_S_Intel
2 262 Visites

Hi Rong,

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

Thanks and Regrads,

Surenthar Selvaraj

0 Compliments
Répondre