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

I cant use stdatomic.h inside enclave project

Medina_Chirinos__Jor
600 Views

Hi there,

I need to use inside my enclave project the library stdatomic.h. I am getting: fatal error: stdatomic.h: No such file or directory. I am using

and I checked in the documentation the function should be ok inside the enclave.

 

does anybody know what the problem could be?

 

Regards

0 Kudos
3 Replies
Hoang_N_Intel
Employee
600 Views

Is your project for C code only? For the standard sample projects, you should be able to include the C++ atomic header without any issue such as 

#include <atomic>

 

0 Kudos
Medina_Chirinos__Jor
600 Views

Hi Hoang,

My project is for C code only

Regards

 

0 Kudos
Medina_Chirinos__Jor
599 Views

Hi Hoang,

Why I cant use the stdatomic.h in my C project and the documentation says that is ok? what do you suggest me to do?

 

Regards

0 Kudos
Reply