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

use visual studio 2019 to compile SGX samples, don't include wrong headers

kxj99
Beginner
807 Views

I tried several samples, not going through. So try to use the official example


https://www.intel.com/content/www/us/en/develop/articles/software-guard-extensions-tutorial-series-part-4.html

 

Enclave is compiled fine, but not the main function.

sgx_status = ve_initialize(enclaveId, &vault_rv);

---

int ve_initialize()
{
return NL_STATUS_OK;
}

 

Severity Code Description Project File Line Suppression State
Error C2660 've_initialize': function does not take 2 arguments EnclaveBridge E:\0 cc4e\sgx tutorial\Tutorial-Password-Manager-with-Intel-SGX-part4\Tutorial Password Manager part 4\EnclaveBridge\EnclaveBridge.cpp 91

No more issue! more examples in C:\Program Files (x86)\Intel\IntelSGXSDK\src

0 Kudos
1 Solution
kxj99
Beginner
799 Views

Create and Execute an Intel SGX Enclave

is a good reference. just pay attention to the included header files that are generated automatically by vs.

I included wrong header file that is for enclave. The proper one is in the main cpp folder, generated .

spectre mitigation can be disabled for easy use.

kxj99_0-1645231705037.png

kxj99_1-1645232082649.png

 

 

 

 

View solution in original post

0 Kudos
2 Replies
kxj99
Beginner
800 Views

Create and Execute an Intel SGX Enclave

is a good reference. just pay attention to the included header files that are generated automatically by vs.

I included wrong header file that is for enclave. The proper one is in the main cpp folder, generated .

spectre mitigation can be disabled for easy use.

kxj99_0-1645231705037.png

kxj99_1-1645232082649.png

 

 

 

 

0 Kudos
JesusG_Intel
Moderator
759 Views

Hello kxj99,


Thanks for posting the solution to your issue. If you have further questions, please open a new thread since Intel will no longer monitor this one.


Sincerely,

Jesus G.

Intel Customer Support


0 Kudos
Reply