sgx-nbench 报错 ld: cannot find -lsgx_tstdcxx
在编译程序sgx-nbench时,出现报错:
$ make
/usr/local/bin/ld: cannot find -lsgx_tstdcxx
collect2: error: ld returned 1 exit status
make: *** [Makefile:179: enclave.so] Error 1
先查找本地是否存在该库find / -name "libsgx_tstdcxx.*"
没有结果
然后根据帖子中提到的:
在Makefile使用中使用-lsgx_tcxx
替换-lsgx_tstdcxx
再次编译通过
在这个报错之前,还出现了App/App.cpp:8:10: fatal error: sgx_status.h: No such file or directory
在报错文件夹下添加sgx_status.h
即可,source code