Build mongo-c-driver error

I want to include and link libmongoc in my program, also I do not like this tutorial below
I just build and install in a self-defined path, then copy inlude directory and lib directory to my project and in CMakeLists.txt I include_directories and link directories separately.
There comes a link error:
cannot find -llibbson-1.0
cannot find -llibmongoc-1.0
But I have in the lib directory, and other 3rd libs are working fine, what is the problem?

@11115 please provide the complete command sequence you are using, starting with the build of the C driver. Ensure you include the complete output of the C driver build and the output of your failed program build.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.