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

I want to put some C++ code into Enclave to execute, but I find that C++ classes are not supported. What should I do?

Zhang__Huiqiang
Beginner
988 Views

I want to put some C++ code into Enclave to execute, but I find that C++ classes are not supported. What should I do?Does the Enclave only support c language? who can resolve my problem,thank you very much.

0 Kudos
2 Replies
Scott_R_Intel
Employee
988 Views

Hello.

C++ support inside enclaves is included with the SGX SDK, though there are limitations - some classes/features are not supported.  There's even a C++ sample included with the SDK (Cxx11SGXDemo).

Please see the "C++ Language Support" section of either the Windows or Linux Developer Reference:

https://download.01.org/intel-sgx/linux-2.5/docs/Intel_SGX_Developer_Reference_Linux_2.5_Open_Source.pdf

https://software.intel.com/sites/default/files/managed/47/19/sgx-sdk-developer-reference-for-windows-os.pdf

Regards.

Scott

0 Kudos
Zhang__Huiqiang
Beginner
988 Views

Hi,Scott, I 'll read it.thank you very much.

best regards

huiqiang

0 Kudos
Reply