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

Eclipse - Semantic error in ecall_enc1_sample function call in basic C++ project, not C project

Harris__David
Beginner
956 Views

*******************

I Eclipse, I've generated empty C and C++ projects, then given both an SGX nature and added an enclave with a sample application option.  In the case of the C project, I get no errors and the sample works.  In the C++ project, the generated code in sample.cpp,

ret = ecall_enc1_sample(global_eid, &ecall_return);

comes up with an error, "Invalid arguments. Candidates are int ecall_enc1_sample()".  However, the project compiles with no errors and executes without a problem.

Just wondering what is generating the error in the case of the C++ project, even though it compiles with no errors and runs.  The edl and enc1_u.h report no errors.

********************

Update: Problem appears to be an Eclipse bug.

0 Kudos
0 Replies
Reply