Trying to write a simple program to try out PKCS #11 with a software based HSM.
Using Windows 10, Visual Studio, and C++.
I downloaded the pkcs header files and have #include "pkcs11.h" at the top of my code.
I have also copied the "softhsm2.dll" file to System32 and SysWOW64 .
However, if I try to use "C_Initialize(NULL)" or any other PKCS#11 function, when I compile I receive the error:
LNK2019 unresolved external symbol in function...
and pointing to the PKCS#11 function.
What am I missing? Do I need to link to the DLL within Visual Studio?
Thanks.
qin__23