sslab-gatech / opensgx

OpenSGX
Other
288 stars 80 forks source link

OpenSSL undefined references #46

Closed Hehohehoheho closed 8 years ago

Hehohehoheho commented 8 years ago

I am trying to write a simple application which uses SHA256 from the OpenSSL library.

My code is stored inside user/demo/openssl and I am trying to build it with ./opensgx -c user/demo/openssl/hellosgx.c. I am getting the following errors:

devel/sgx/opensgx/user/demo/openssl/hellosgx.c:47: undefined reference to SHA256_Init devel/sgx/opensgx/user/demo/openssl/hellosgx.c:48: undefined reference to SHA256_Update' devel/sgx/opensgx/user/demo/openssl/hellosgx.c:49: undefined reference to SHA256_Final

Does anyone know what the problem might be?

Edit: sorry for the spam. There was a mistake in the Makefile.