Hi,
I built the Couchbase C Client on Linux from https://github.com/couchbase/libcouchbase instructions successfully. I want to link the library with my project using cmake.
For now that’s what I have, the same project is working fine on Windows. I’m only having issues with Linux.
Here’s the error…
If someone can help me
Thanks
I installed libcouchbase on ubuntu and just had to add
target_link_libraries(main PRIVATE couchbase)
I don’t think there was anything else to do.
When compiling the library with -enable-static
and linking statically I had to do the following:
include_directories(/usr/local/include /usr/local/include/libcouchbase)
target_link_libraries(main PRIVATE /usr/local/lib/libcouchbase.a)
target_link_libraries(main PUBLIC resolv dl) # libcouchbase depends on these