Topic: wc_PRF unresolved externals in VS10 environment

I'm using WolfSSL in Windows 10 and had taken VS10 distribution.
When linking testsuite and others utilities, I got following problems:

4>  Generating Code...
4>wolfssl.lib(ssl.obj) : error LNK2019: unresolved external symbol _wc_PRF referenced in function _wolfSSL_RAND_pseudo_bytes
4>wolfssl.lib(tls.obj) : error LNK2019: unresolved external symbol _wc_PRF_TLS referenced in function _BuildTlsFinished
4>C:\Software\SDStransfer_v4a\src\wolfssl-5.1.1\Debug\testsuite.exe : fatal error LNK1120: 2 unresolved externals

I understand that WOLFSSL_HAVE_PRF is set but 2 functions (wc_PRF and wc_PRF_TLS) are not defined.

How can I get a valid wolfssl.lib so to integrat in my software development?

Share

Re: wc_PRF unresolved externals in VS10 environment

A new source file was added,

/wolfssl/wolfcrypt/src/kdf.c

, and it is not being built by your VS project.

The VS project files in the repository have been updated in the latest release.

Re: wc_PRF unresolved externals in VS10 environment

Fine, thanks a lot. I've put kdf.c file in depencies and now, lib is generated without any problem.
This post can be closed.

Share