I'm trying to build a very basic application to generate a SHA256 hash from a string. Works no problem with openssl lib but with wolfssl I get the following:
test.c:(.text+0x28): undefined reference to wolfSSL_SHA256_Init'
test.c:(.text+0x48): undefined reference towolfSSL_SHA256_Update'
test.c:(.text+0x5d): undefined reference to `wolfSSL_SHA256_Final'
I'm compiling using gcc on ubuntu with the following:
gcc test.c -lm -lwolfssl
wolfssl lib compiled and installed no problems on my system, i'm using 3.6.0.
With openssl lib I use:
gcc test.c -lm -lcrypto
compiles no problem.
Am I missing something? I'm new to C, any help would be greatly appreciated.