Just as the title. when i use sgx_cap_enable_device() to enable SGX in ubuntu 16.04, I always get the error "undefined reference to 'sgx_cap_enable_device'"(when I debug). I hope someone could help me.
Please refer to this documentation page https://software.intel.com/en-us/articles/properly-detecting-intel-software-guard-extensions-in-your-applications
You need to make sure that the BIOS setting is configured with "Software Controlled" option first before making the call to sgx_enable_device() or sgx_cap_enable_device()