Replies: 1 comment
-
Put your #define SODIUM_STATIC before the #include <sodium.h> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I hate to ask but I have been having problems linking libsodium.
The libsodium version is libsodium-1.0.18-stable-msvc I got it from the website, I was also using the debug static linked lib. I also added the
#define SODIUM_STATIC
to my main cpp file. But I still get a linking error. I have been trying to fix this for an hour now. I have googled the problem and searched this github to.The code I used
The errors I got
The only settings i changed in my project was
Configuration Properties -> Linker -> Additional Dependencies = libsodium.lib
Configuration Properties -> Linker -> Additional Library Directories
Configuration Properties -> C/C++ -> Additional Include Directories
Configuration Properties -> C/C++ -> Runtime Library = Multi-Threaded Debug
If you have any ideas on how to fix this problem then please repliy.
Beta Was this translation helpful? Give feedback.
All reactions