volcano0dr commented on PR #260: URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260#issuecomment-1454751134
> 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 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org For additional commands, e-mail: notifications-h...@teaclave.apache.org