Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Guy_M_
Novice
112 Views

Unable to pass C struct with typedef to ECALL

I need to pass a structure with a typedef to an ECALL from within the enclave. The structure is defined in "Def.h" and include in the .edl file.

What am I doing wrong? without the typedef, it works fine.

 

Def.h

Selection_013.png

enclave.edlSelection_017.png

my error

Selection_016.png

 

 

0 Kudos
1 Reply
Hoang_N_Intel
Employee
112 Views

This is a common user error in defining EDL file. When you include a header file in EDL file, you are not supposed to add the "#" sign. Please update the code to have only

include "Def.h"

instead of

#include "Def.h"

 

Reply