1 (edited by nile 2020-01-17 15:03:50)

Topic: Query Regarding using wolfssl dll in Visual Studio Project

I am trying to follow following resources to create the dll and set it up correctly in my project

https://docs.microsoft.com/en-us/cpp/bu … ew=vs-2019
(or https://github.com/MicrosoftDocs/cpp-do … ry-cpp.md)

I am able to run the testsuite.exe (but i am not sure thats helpful here)

In my project I am including the headers in wolfssl and cyassl folders

But I still get Undefined struct error for the first instance of ecc structure usage

Its as if the file inclusion has not happened at all.
Is this something trivial i am missing out on?
I am using wolfssl 4.3 and Visual studio community edition 2019

Any help will be highly appreciated


Post's attachments

wolf.PNG 143.01 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.


Re: Query Regarding using wolfssl dll in Visual Studio Project

Hi nile,

Make sure that when you build the wolfssl64.sln in DLL mode you have updated the file wolfssl-root/IDE/WIN/user_settings.h with the define HAVE_ECC. Then make sure your application includes <wolfssl/wolfcrypt/settings.h> with WOLFSSL_USER_SETTINGS in the PreProcessor macros for your project.

Both library and application need to have HAVE_ECC defined.


- K