In file included from C:\Dev\src\mongo-cxx-driver\src\mongocxx\test\collection_mocked.cpp:15:0: C:/Dev/src/mongo-cxx-driver/src/third_party/catch/include/catch.hpp: In instantiation of 'static bool Catch::Internal::Evaluator::evaluate(const T1&, const T2&) [with T1 = const _mongoc_read_prefs_t*; T2 = long long int]': C:/Dev/src/mongo-cxx-driver/src/third_party/catch/include/catch.hpp:868:47: required from 'bool Catch::Internal::compare(const T1&, const T2&) [with Catch::Internal::Operator Op = (Catch::Internal::Operator)0u; T1 = const _mongoc_read_prefs_t*; T2 = long long int]' C:/Dev/src/mongo-cxx-driver/src/third_party/catch/include/catch.hpp:1287:50: required from 'Catch::ResultBuilder& Catch::ExpressionLhs::captureExpression(const RhsT&) [with Catch::Internal::Operator Op = (Catch::Internal::Operator)0u; RhsT = long long int; T = const _mongoc_read_prefs_t* const&]' C:/Dev/src/mongo-cxx-driver/src/third_party/catch/include/catch.hpp:1230:54: required from 'Catch::ResultBuilder& Catch::ExpressionLhs::operator==(const RhsT&) [with RhsT = long long int; T = const _mongoc_read_prefs_t* const&]' C:\Dev\src\mongo-cxx-driver\src\mongocxx\test\collection_mocked.cpp:454:13: required from here C:/Dev/src/mongo-cxx-driver/src/third_party/catch/include/catch.hpp:823:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] return opCast( lhs ) == opCast( rhs ); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src\mongocxx\test\CMakeFiles\test_driver.dir\build.make:187: recipe for target 'src/mongocxx/test/CMakeFiles/test_driver.dir/collection_mocked.cpp.obj' failed mingw32-make[3]: *** [src/mongocxx/test/CMakeFiles/test_driver.dir/collection_mocked.cpp.obj] Error 1 CMakeFiles\Makefile2:780: recipe for target 'src/mongocxx/test/CMakeFiles/test_driver.dir/all' failed mingw32-make[2]: *** [src/mongocxx/test/CMakeFiles/test_driver.dir/all] Error 2 CMakeFiles\Makefile2:792: recipe for target 'src/mongocxx/test/CMakeFiles/test_driver.dir/rule' failed mingw32-make[1]: *** [src/mongocxx/test/CMakeFiles/test_driver.dir/rule] Error 2 Makefile:380: recipe for target 'test_driver' failed mingw32-make: *** [test_driver] Error 2