-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using static libraries but getting error of gcrypt.dll not found #3
Comments
You need to add libgcrypt.lib to your linker includes. Note that gcrypt.lib is for the dynamic library and libgcrypt.lib is for the static. |
Thanks, I've removed gcrypt.lib from linker includes, and now it works perfectly |
Sibras
pushed a commit
that referenced
this issue
Jun 29, 2024
* cipher/kdf.c (balloon_xor_block): Use 'buf_xor' helper function; Change pointer parameters to 'void *' type. (balloon_final): Don't cast last_block to 'u64 *' for balloon_xor_block call. -- Seen on s390x UBSAN: /home/testbuild/libgcrypt/cipher/kdf.c:1130:12: runtime error: load of misaligned address 0x00400181370c for type 'u64', which requires 8 byte alignment 0x00400181370c: note: pointer points here 01 01 01 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ #0 0x4001a3f3d3 (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/src/.libs/libgcrypt.so.20+0x1f83d3) #1 0x40019cf049 (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/src/.libs/libgcrypt.so.20+0x188049) #2 0x400000acbf (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0xacbf) #3 0x4000008931 (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0x8931) #4 0x400271a031 (/lib/libc.so.6+0x2b031) #5 0x400271a10d (/lib/libc.so.6+0x2b10d) #6 0x4000009bcf (/run/user/1006/libgcrypt/build_s390x-linux-gnu_ubsan/tests/t-kdf+0x9bcf) GnuPG-bug-id: 5817 Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
I'm using the static libraries downloaded from the release page. I've checked the settings of the project configurations including C/C++ and Linker in visual studio 2022, and when I try to run the program, it'll give a system error "This application failed to start because gcrypt.dll was not found. Re-installing the application may fix this problem.". The error can be solved by adding gcrypt.dll to the project folder, but I was wondering if the static library in Releases should be an import library or an object library.
Expected Behavior
The program can run without adding gcrypt.dll to the project folder
Actual Behavior
Need to add gcrypt.dll to the project folder to run the program
Your Environment
The text was updated successfully, but these errors were encountered: