> I understand this issue has been closed but I needed more clarity on this 
> one. I tried including `-Wl,--whole-archive -lsgx_uswitchless 
> -Wl,--no-whole-archive` in my file with main() however I run into following 
> error: `= note: 
> /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sl_urts_loader_untrusted.o): In 
> function `urts_loader_t::urts_loader_t()': 
> sl_urts_loader_untrusted.cpp:(.text._ZN13urts_loader_tC2Ev+0x8): undefined 
> reference to `sgx_set_switchless_itf' 
> /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sl_workers_untrusted.o): In 
> function `tworker_process_calls': 
> sl_workers_untrusted.c:(.text.tworker_process_calls+0x21): undefined 
> reference to `sl_run_switchless_tworker' 
> /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sgx_ecall_switchless_untrusted.o):
>  In function `init_tswitchless': 
> sgx_ecall_switchless_untrusted.c:(.text.init_tswitchless+0x10): undefined 
> reference to `sl_init_switchless' collect2: error: ld returned 1 exit status 
> ` Looks like it cannot find sgx_urts or other files. Not sure what I am 
> missing here. Apologies in advance if this is not the right place to post 
> this.

You can refer to 
[switchless](https://github.com/apache/incubator-teaclave-sgx-sdk/tree/master/samplecode/switchless)
 example

-- 
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260#issuecomment-1454751134
You are receiving this because you are subscribed to this thread.

Message ID: <apache/incubator-teaclave-sgx-sdk/pull/260/[email protected]>

Reply via email to