- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The latest Intel SGX developer Reference for Linux* OS (version 2.12) specifies (from page 137) APIs provided by the SGX pthread library. However there is not any example Sample code that uses or shows how to use these APIs in SGX applications. More specifically, what are the associated header files to import, EDL files etc.
I have tried using the API (pthread_create(...) etc) after adding "-lsgx_pthread" in my link options, but this alone does not seem to be enough; the said routines are not found by my compiler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello PYuhala,
In addition to adding -lsgx_pthread to your link statement in the Makefile, you must...
- Copy sgxsdk/include/sgx_pthread.edl to your Enclave source directory.
- In Enclave.edl, add: from "sgx_pthread.edl" import *;
- In Enclave.cpp, add: #include "pthread.h"
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello PYuhala,
In addition to adding -lsgx_pthread to your link statement in the Makefile, you must...
- Copy sgxsdk/include/sgx_pthread.edl to your Enclave source directory.
- In Enclave.edl, add: from "sgx_pthread.edl" import *;
- In Enclave.cpp, add: #include "pthread.h"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for your response. Will do as you have said.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This thread has been marked as answered and Intel will no longer monitor this thread. If you want a response from Intel in a follow-up question, please open a new thread.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page