0

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
Dharman
  • 30,962
  • 25
  • 85
  • 135

2 Answers2

1

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?

0

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

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 06 '23 at 00:25