Why does sodium/version.h.in exist but not version.h? #1421
-
I'm including LibSodium in a desktop app project and i continuously get an error about Am I doing something wrong when integrating Libsodium into my project?
Originally posted by @jedisct1 in #213 (comment) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you are using autoconf, when you type If you are using Zig, after you type But your operating system probably has packages for libsodium already, so you can simply install them, and everything will be in your default compilation paths. |
Beta Was this translation helpful? Give feedback.
version.h.in
is only used internally by the build process. It's not part of the files that are installed.If you are using autoconf, when you type
make install
, the library files are installed in${prefix}/lib
and the header files in${prefix}/include
. Withprefix
being/usr/local
by default, or whatever follows the--prefix
parameter given to the./configure
command. This is what you should use in your applications.If you are using Zig, after you type
zig build -Doptimize=ReleaseFast
(or whatever), the libraries are inzig-out/lib
and the header files inzig-out/include
. Once again, these are the files you should use in your application.But your operating system probably has packages f…