/usr/bin/ld: cannot find -lliburing

4.9k views Asked by At

When compiled using

gcc liburing-test.c -o liburing-test -lliburing

flowing error is displayed

/usr/bin/ld: cannot find -lliburing
collect2: error: ld returned 1 exit status
2

There are 2 answers

0
Abhay Raj Singh On BEST ANSWER

You can fix this error by replacing -lliburing with -luring

gcc liburing-test.c -o liburing-test -luring

Is lib{library name}.a / .so a naming convention for static libraries in Linux?

1
Xavier Watson On

For anyone who runs across this and uses CMake add uring to target_link_libraries() in your CMakeLists.txt.