version: 0.0.113-unknownhash
package: lmdb:x64-linux
CMakeLists.txt
find_package(lmdb CONFIG REQUIRED)
add_executable(test test.cpp)
target_include_directories(test PRIVATE ${lmdb_INCLUDE_DIRS})
target_link_libraries(test PRIVATE lmdb pthread)
test.cpp code:
#include <iostream>
#include <lmdb.h>
using namespace std;
int main()
{
int major, minor, patch;
char *version = mdb_version(&major, &minor, &patch);
cout << version << major << minor << patch << endl;
return 0;
}
Compile error log:
/usr/bin/ld: cannot find -lntdll.lib
collect2: error: ld returned 1 exit status
CMakeFiles/test.dir/build.make:84: recipe for target 'test' failed
make[2]: *** [test] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/test.dir/all' failed
make[1]: *** [CMakeFiles/test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
version: 0.0.113-unknownhash
package: lmdb:x64-linux
CMakeLists.txt
test.cpp code:
Compile error log: