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

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

kxj99
Débutant
1 379 Visites

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 Compliments
1 Solution
kxj99
Débutant
1 371 Visites

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

 

 

 

 

Voir la solution dans l'envoi d'origine

0 Compliments
2 Réponses
kxj99
Débutant
1 372 Visites

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 Compliments
JesusG_Intel
Modérateur
1 331 Visites

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 Compliments
Répondre