1 (edited by Pfbmtlqc 2015-12-01 21:02:19)

Topic: undefined reference to `wolfSSL_CTX_set_psk_client_callback'

Hi all,

I'm trying to compile the echoclient example and i get the following error message;
-> undefined reference to `wolfSSL_CTX_set_psk_client_callback'

Test setup: CodeBlocks+MinGW

I have linked libwolfssl.a in my linker settings as it should be.

Is there something else to link ?
Am i linking to the correct library ?

I am bit confused here ...

NOTE - I was not able to build the whole WolfSSL package using

    configure --enable-static
    make
    make install.

as referenced in: https://www.wolfssl.com/wolfSSL/wolfssl-quickstart.html

My build setup is a regular MinGW/MSYS package.

I had to do the following to generate a static library.

    configure --enable-static
    make src/libwolfssl.la

Reference: https://www.wolfssl.com/wolfSSL/Docs-wo … lfssl.html

Any help or suggestions would be appreciated.

Thank.

update: problem fixed, i added  --enable-psk option to make.
Mr linker is happy, no more undefined reference ...
echoclient and echoserver examples are compiling and working ok.

Share

Re: undefined reference to `wolfSSL_CTX_set_psk_client_callback'

Hi,

Have you enabled PSK support when compiling wolfSSL?  This can be done with the "--enable-psk" ./configure option:

./configure --enable-psk

Thanks,
Chris