1 (edited by mirfälltnixein 2020-03-22 05:40:34)

Topic: [SOLVED] Undefined Reference Error

Hello Im trying to make a C program that uses WolfSSL to en/decrypt Data with AES-256-GCM and i want to use WolfSSL for that. I downloaded the source and built it with ./configure make make install and ran the test which returned no errors but when i try to use any of the WolfSSL functions in my CodeLite Project I get an Undefined Reference error.
I included the ssl.h file with #include <wolfssl/ssl.h> and added libwolfssh.a to my linker libraries but everytime i try to use any of the WolfSSL functions it says Undefined Reference allthough my IDE is able to find all functions and even suggests the complete functions when I type in wc_

The error message (I know that I didnt give the function any arguments, I just wanted to see if it even recognizes it)
www1.xup.in/exec/ximg.php?fid=70476786
My Linker Settings
www1.xup.in/exec/ximg.php?fid=58605189
My Compiler Settings
www1.xup.in/exec/ximg.php?fid=82937980

Does anyone know how i can fix this? Im using CodeLite with Mingw-w64 on Windows10

Share

Re: [SOLVED] Undefined Reference Error

Hi mirfälltnixein,

Can you try including <wolfssl/options.h> before all other wolfSSL headers to prevent mis-configuration issues and let us know if that resolves these issues?

Warm Regards,

K