Replies: 1 comment 6 replies
-
Hi @azmur8, thanks for your interest in liboqs! The correct syntax is |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, trying to build a library with only one algo, this is current main branch, however it doesn't build:
[1/39] Building C object src/CMakeFiles/oqs.dir/kem/kem.c.o
FAILED: src/CMakeFiles/oqs.dir/kem/kem.c.o
/usr/bin/musl-gcc -I/home/dr/liboqs/build/include -I/home/dr/liboqs/src -Os -DNDEBUG -fPIC -fvisibility=hidden -Wa,--noexecstack -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -Wl,--gc-sections -std=gnu11 -MD -MT src/CMakeFiles/oqs.dir/kem/kem.c.o -MF src/CMakeFiles/oqs.dir/kem/kem.c.o.d -o src/CMakeFiles/oqs.dir/kem/kem.c.o -c /home/dr/liboqs/src/kem/kem.c
/home/dr/liboqs/src/kem/kem.c: In function ‘OQS_KEM_new’:
/home/dr/liboqs/src/kem/kem.c:380:24: error: implicit declaration of function ‘OQS_KEM_kyber_512_new’ [-Wimplicit-function-declaration]
380 | return OQS_KEM_kyber_512_new();
| ^~~~~~~~~~~~~~~~~~~~~
/home/dr/liboqs/src/kem/kem.c:380:24: error: returning ‘int’ from a function with return type ‘OQS_KEM *’ makes pointer from integer without a cast [-Wint-conversion]
380 | return OQS_KEM_kyber_512_new();
| ^~~~~~~~~~~~~~~~~~~~~~~
[10/39] Building C object src/common/CMakeFiles/common.dir/sha2/sha2_c.c.o
ninja: build stopped: subcommand failed.
it seems there are few problems here:
#ifdef OQS_ENABLE_KEM_KYBER
#include <oqs/kem_kyber.h>
#endif /* OQS_ENABLE_KEM_KYBER */
Beta Was this translation helpful? Give feedback.
All reactions