-
I've been fighting with getting libsodium to build statically for windows (fine in linux) for the past few days and am at my wits end. Here's my cmake settings:
I've gone ahead and built all libsodium in visual studio prior to running my cmake command but I consistently get: Does anyone know what I'm doing wrong here? Is there an example project that I can look at? Would love some assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I figured out my problem. I was calling libsodium from a library I built as part of the cmake, but that library did not link against libsodium, only the application that was linking to the library did, hence it was unable to find the symbols. so top level cmake (as listed above) was fine, but in my library src directory i needed to add:
|
Beta Was this translation helpful? Give feedback.
I figured out my problem. I was calling libsodium from a library I built as part of the cmake, but that library did not link against libsodium, only the application that was linking to the library did, hence it was unable to find the symbols.
so top level cmake (as listed above) was fine, but in my library src directory i needed to add: