Mongo-cxx Installation Problems Windows

Hi, I’m currently trying to compile mongocxx-driver Windows, and I have ran into some issues.

I used the guide found at
http://mongocxx.org/mongocxx-v3/installation/
and have successfully installed MongoDB C Driver

Under Step 4, Configure the driver, I ran into the issues.

I used the following command

cmake … -DBOOST_ROOT=E:\dev\git\externalapi\boost -DCMAKE_PREFIX_PATH=C:\mongo-c-driver -DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-driver

and received the following errors:

CMake Error at E:/dev/git/connectors/mongoDb/sourceCode/mongo-c-driver-1.17.0/src/libbson/libbson-1.0-config.cmake:32 (message):
  File or directory
  E:/dev/git/connectors/mongoDb/sourceCode/include/libbson-1.0 referenced by
  variable BSON_INCLUDE_DIRS does not exist !
Call Stack (most recent call first):
  E:/dev/git/connectors/mongoDb/sourceCode/mongo-c-driver-1.17.0/src/libbson/libbson-1.0-config.cmake:48 (set_and_check)
  src/bsoncxx/CMakeLists.txt:98 (find_package)  

I also tried follwoing the instructions at stack overflow stackOverflow using the CMakeLists.txt provided (updating the versions) but get to an error

Checking Build System
    Creating directories for 'EP_mnmlstc_core'
    Building Custom Rule C:/mongo-cxx-test/libmongocxx/src/bsoncxx/third_party/CMakeLists.txt
    Performing download step (git clone) for 'EP_mnmlstc_core'
    -- EP_mnmlstc_core download command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_part
  y/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download-*.log
    No update step for 'EP_mnmlstc_core'
    No patch step for 'EP_mnmlstc_core'
    Performing configure step for 'EP_mnmlstc_core'
    -- EP_mnmlstc_core configure command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_par
  ty/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-*.log
    Performing build step for 'EP_mnmlstc_core'
    -- EP_mnmlstc_core build command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_party/E
  P_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-build-*.log
    Performing install step for 'EP_mnmlstc_core'
    -- EP_mnmlstc_core install command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_party
  /EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log
    Performing fix-includes step for 'EP_mnmlstc_core'
    'xargs' is not recognized as an internal or external command,
    operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(23
1,5): error MSB6006: "cmd.exe" exited with code 255. [C:\mongo-cxx-test\libmongocxx-build\src\bsoncxx\third_party\EP_mn
mlstc_core.vcxproj] [C:\mongo-cxx-test\libmongocxx.vcxproj]

Really need some help on this

@Thomas_Morten the problem seems to be that CMake is using the package scripts out of the C driver source tree instead of the files from the installed location. Can you inspect your environment variables to see if there are any CMake settings (particularly CMAKE_PREFIX_PATH) being set or modified via an environment variable? Also, could you provide the complete CMake command you are using for the C++ driver and the complete output from the beginning all the way to the error?

1 Like

I have no relevant environment variables set (no CMAKE_PREFIX_PATH).

I am using the following script for my CMakeLists.txt as well as the test.cpp from the install guide:

cmake_minimum_required(VERSION 3.12)

set(CMAKE_CXX_STANDARD 11)

project(Test)

option({PROJECT_NAME}_SUPERBUILD "Build {PROJECT_NAME} and the projects it depends on." ON)

if(${PROJECT_NAME}_SUPERBUILD)

include(ExternalProject)

set(common_cmake_cache_args
    -DCMAKE_CXX_COMPILER:PATH=${CMAKE_CXX_COMPILER}
)
if(NOT DEFINED CMAKE_CONFIGURATION_TYPES)
    list(APPEND common_cmake_cache_args
        -DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
    )
endif()

ExternalProject_Add(libmongoc
    GIT_REPOSITORY  "https://github.com/mongodb/mongo-c-driver.git"
    GIT_TAG         "1.17.0"
    GIT_PROGRESS    1
    GIT_SHALLOW     1
    SOURCE_DIR      "${CMAKE_BINARY_DIR}/libmongoc"
    BINARY_DIR      "${CMAKE_BINARY_DIR}/libmongoc-build"
    INSTALL_DIR     "${CMAKE_BINARY_DIR}/libmongoc-install"
    CMAKE_CACHE_ARGS
        ${common_cmake_cache_args}
        -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/libmongoc-install
        -DENABLE_TESTS:BOOL=OFF
        -DENABLE_STATIC:BOOL=OFF
        -DENABLE_EXAMPLES:BOOL=OFF
        -DENABLE_EXTRA_ALIGNMENT:BOOL=OFF
    #INSTALL_COMMAND ""
)
set(libmongoc-1.0_DIR "${CMAKE_BINARY_DIR}/libmongoc-install/lib/cmake/libmongoc-1.0/")
set(libbson-1.0_DIR "${CMAKE_BINARY_DIR}/libmongoc-install/lib/cmake/libbson-1.0/")

ExternalProject_Add(libmongocxx
    GIT_REPOSITORY  "https://github.com/mongodb/mongo-cxx-driver.git"
    GIT_TAG         "releases/v3.6"
    GIT_PROGRESS    1
    GIT_SHALLOW     1
    SOURCE_DIR      "${CMAKE_BINARY_DIR}/libmongocxx"
    BINARY_DIR      "${CMAKE_BINARY_DIR}/libmongocxx-build"
    INSTALL_DIR     "${CMAKE_BINARY_DIR}/libmongocxx-install"
    CMAKE_CACHE_ARGS
        ${common_cmake_cache_args}
        -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/libmongocxx-install
        -DBUILD_SHARED_LIBS:BOOL=ON
        -DENABLE_TESTS:BOOL=OFF
        -DENABLE_EXAMPLES:BOOL=OFF
        -DBSONCXX_POLY_USE_BOOST:BOOL=OFF
        -DBSONCXX_POLY_USE_MNMLSTC:BOOL=ON
        -DBSONCXX_POLY_USE_STD:BOOL=OFF
        -Dlibmongoc-1.0_DIR:PATH=${libmongoc-1.0_DIR}
        -Dlibbson-1.0_DIR:PATH=${libbson-1.0_DIR}
    DEPENDS
        libmongoc
)
set(libmongocxx_DIR "${CMAKE_BINARY_DIR}/libmongocxx-install/lib/cmake/libmongocxx-3.3.1/")
set(libbsoncxx_DIR "${CMAKE_BINARY_DIR}/libmongocxx-install//lib/cmake/libbsoncxx-3.3.1/")


function(ExternalProject_AlwaysConfigure proj)
  # This custom external project step forces the configure and later
  # steps to run.
  _ep_get_step_stampfile(${proj} "configure" stampfile)
  ExternalProject_Add_Step(${proj} forceconfigure
    COMMAND ${CMAKE_COMMAND} -E remove ${stampfile}
    COMMENT "Forcing configure step for '${proj}'"
    DEPENDEES build
    ALWAYS 1
    )
endfunction()

ExternalProject_Add(${PROJECT_NAME}
    SOURCE_DIR "${CMAKE_SOURCE_DIR}"
    BINARY_DIR "${CMAKE_BINARY_DIR}/${PROJECT_NAME}-build"
    DOWNLOAD_COMMAND ""
    UPDATE_COMMAND ""
    CMAKE_CACHE_ARGS
        ${common_cmake_cache_args}
        -D${PROJECT_NAME}_SUPERBUILD:BOOL=OFF
        -Dlibbsoncxx_DIR:PATH=${libbsoncxx_DIR}
        -Dlibmongocxx_DIR:PATH=${libmongocxx_DIR}
    INSTALL_COMMAND ""
    DEPENDS
        libmongocxx
)
ExternalProject_AlwaysConfigure(${PROJECT_NAME})
return()

endif()

message(STATUS “Configuring inner-build”)

find_package(libmongocxx REQUIRED)

add_executable(test_mongocxx test.cpp)
target_link_libraries(test_mongocxx PUBLIC {LIBMONGOCXX_LIBRARIES}) target_include_directories(test_mongocxx PUBLIC {LIBMONGOCXX_INCLUDE_DIRS})
target_compile_definitions(test_mongocxx PUBLIC ${LIBMONGOCXX_DEFINITIONS})

I call this using :

cmake .

then

cmake --build .

Here is the full output from the cmd commands (split into 2 because of character limit):

C:\mongo-cxx-test>cmake .
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.16299.
-- The C compiler identification is MSVC 19.24.28316.0
-- The CXX compiler identification is MSVC 19.24.28316.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.28314/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mongo-cxx-test

C:\mongo-cxx-test>cmake --build .
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Creating directories for 'libmongoc'
  Building Custom Rule C:/mongo-cxx-test/CMakeLists.txt
  Performing download step (git clone) for 'libmongoc'
  Cloning into 'libmongoc'...
  remote: Enumerating objects: 46002, done.
  remote: Counting objects:   0% (1/46002)
  remote: Counting objects:   1% (461/46002)
  ...
  remote: Counting objects:  99% (45542/46002)
  remote: Counting objects: 100% (46002/46002)
  remote: Counting objects: 100% (46002/46002), done.
  remote: Compressing objects:   0% (1/24069)
  remote: Compressing objects:   1% (241/24069)
  ...
  remote: Compressing objects: 100% (24069/24069)
  remote: Compressing objects: 100% (24069/24069), done.
  Receiving objects:   0% (1/46002)
  Receiving objects:   0% (365/46002), 140.00 KiB | 181.00 KiB/s
  Receiving objects:   1% (461/46002), 140.00 KiB | 181.00 KiB/s
  ...
  Receiving objects:  99% (45542/46002), 22.72 MiB | 1.83 MiB/s
  remote: Total 46002 (delta 41401), reused 24517 (delta 21581), pack-reused 0
  Receiving objects: 100% (46002/46002), 22.72 MiB | 1.83 MiB/s
  Receiving objects: 100% (46002/46002), 23.37 MiB | 1.37 MiB/s, done.
  Resolving deltas:   0% (0/41401)
  Resolving deltas:   1% (416/41401)
  ...
  Resolving deltas: 100% (41401/41401)
  Resolving deltas: 100% (41401/41401), done.
  Note: checking out '1.17.0'.
  You are in 'detached HEAD' state. You can look around, make experimental
  changes and commit them, and you can discard any commits you make in this
  state without impacting any branches by performing another checkout.

  If you want to create a new branch to retain commits you create, you may
  do so (now or later) by using -b with the checkout command again. Example:

	git checkout -b <new-branch-name>

  HEAD is now at b51d1e45 1.17.0 Release
  Performing update step for 'libmongoc'
  No patch step for 'libmongoc'
  Performing configure step for 'libmongoc'
  loading initial cache file C:/mongo-cxx-test/libmongoc-prefix/tmp/libmongoc-cache-Debug.cmake
  -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.16299.
  -- The C compiler identification is ;MSVC 19.24.28316.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.2
  8314/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
  -- Found PythonInterp: E:/dev/Tools/Python3/python.exe (found version "3.7")
  calculated BUILD_VERSION 1.17.0
  storing BUILD_VERSION 1.17.0 in file VERSION_CURRENT for later use
  -- Don't build static libraries
	-- Using bundled libbson
  libbson version (from VERSION_CURRENT file): 1.17.0
  -- Check if the system is big endian
  -- Searching 16 bit integer
  -- Looking for sys/types.h
  -- Looking for sys/types.h - found
  -- Looking for stdint.h
  -- Looking for stdint.h - found
  -- Looking for stddef.h
  -- Looking for stddef.h - found
  -- Check size of unsigned short
  -- Check size of unsigned short - done
  -- Searching 16 bit integer - Using unsigned short
  -- Check if the system is big endian - little endian
  -- Looking for snprintf
  -- Looking for snprintf - found
  -- Looking for reallocf
  -- Looking for reallocf - not found
  -- Performing Test BSON_HAVE_TIMESPEC
  -- Performing Test BSON_HAVE_TIMESPEC - Success
  --     struct timespec found
  -- Looking for gmtime_r
  -- Looking for gmtime_r - not found
  -- Looking for rand_r
  -- Looking for rand_r - not found
  -- Looking for strings.h
  -- Looking for strings.h - not found
  -- Looking for strlcpy
  -- Looking for strlcpy - not found
  -- Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH
  -- Performing Test HAVE_ATOMIC_32_ADD_AND_FETCH - Failed
  -- Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH
  -- Performing Test HAVE_ATOMIC_64_ADD_AND_FETCH - Failed
  -- Looking for pthread.h
  -- Looking for pthread.h - not found
  -- Found Threads: TRUE
  libmongoc version (from VERSION_CURRENT file): 1.17.0
  -- Searching for zlib CMake packages
  -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
  -- Enabling zlib compression (bundled)
  -- Looking for include file unistd.h
  -- Looking for include file unistd.h - not found
  -- Looking for include file stdarg.h
  -- Looking for include file stdarg.h - found
  -- Searching for compression library zstd
  -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
  --   Not found
  -- Check size of socklen_t
  -- Check size of socklen_t - done
  -- Looking for sched_getcpu
  -- Looking for sched_getcpu - not found
  -- Searching for compression library header snappy-c.h
  --   Not found (specify -DCMAKE_INCLUDE_PATH=/path/to/snappy/include for Snappy compression)
  -- No ICU library found, SASLPrep disabled for SCRAM-SHA-256 authentication.
  Searching for libmongocrypt
  -- If ICU is installed in a non-standard directory, define ICU_ROOT as the ICU installation path.
  -- libmongocrypt not found. Configuring without Client-Side Field Level Encryption support.
  -- Performing Test MONGOC_HAVE_SS_FAMILY
  -- Performing Test MONGOC_HAVE_SS_FAMILY - Failed
  -- Compiling against Secure Channel
  -- Compiling against Windows SSPI
  -- Building with MONGODB-AWS auth support
  -- Build files generated for:
  --    build system: Visual Studio 16 2019
  --    instance: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/mongo-cxx-test/libmongoc-build
  Performing build step for 'libmongoc'
  Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

	Checking Build System
	Building Custom Rule C:/mongo-cxx-test/libmongoc/src/libbson/CMakeLists.txt
	bcon.c
	bson.c
	bson-atomic.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-atomic.c(93,36): warning C4133: 'function': incompatible types -
from 'volatile int64_t *' to 'volatile LONG *' [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\
mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-atomic.c(93,39): warning C4244: 'function': conversion from 'int6
4_t' to 'LONG', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx
-test\libmongoc.vcxproj]
	bson-clock.c
	bson-context.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-context.c(290,43): warning C4267: '=': conversion from 'size_t' t
o 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\l
ibmongoc.vcxproj]
	bson-decimal128.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-decimal128.c(176,1): warning C4996: 'strcpy': This function or va
riable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online
help for details. [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxp
roj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\string.h(133): message : see declaration of 'strcpy'
   [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-decimal128.c(180,1): warning C4996: 'strcpy': This function or va
riable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online
help for details. [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxp
roj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\string.h(133): message : see declaration of 'strcpy'
   [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-decimal128.c(629,33): warning C4267: '-=': conversion from 'size_
t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cx
x-test\libmongoc.vcxproj]
	bson-error.c
	bson-iso8601.c
	bson-iter.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-iter.c(114,22): warning C4267: '=': conversion from 'size_t' to '
uint32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test
\libmongoc.vcxproj]
	bson-json.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-json.c(617,77): warning C4146: unary minus operator applied to un
signed type, result still unsigned [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-te
st\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-json.c(1069,1): warning C4267: 'function': conversion from 'size_
t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-te
st\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-json.c(2090,39): warning C4018: '<': signed/unsigned mismatch [C:
\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-json.c(2091,24): warning C4018: '<': signed/unsigned mismatch [C:
\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	bson-keys.c
	bson-md5.c
	bson-memory.c
	bson-oid.c
	bson-reader.c
	bson-string.c
	bson-timegm.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(278,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(295,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(295,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(295,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(321,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(331,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(331,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(331,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(331,1): warning C4028: formal parameter 4 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(466,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(483,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(483,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(488,12): warning C4244: '+=': conversion from 'const int
64_t' to 'int_fast32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\
mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(494,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(494,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(494,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(507,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(507,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(507,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(519,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(519,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(538,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(538,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(538,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(538,1): warning C4028: formal parameter 4 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(538,1): warning C4028: formal parameter 5 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(706,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(706,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(706,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(706,1): warning C4028: formal parameter 4 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(722,1): warning C4028: formal parameter 1 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(722,1): warning C4028: formal parameter 2 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\bson\bson-timegm.c(722,1): warning C4028: formal parameter 3 different from
 declaration [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	bson-utf8.c
	bson-value.c
	bson-version-functions.c
	Generating Code...
	Compiling...
	bson-writer.c
	jsonsl.c
C:\mongo-cxx-test\libmongoc\src\libbson\src\jsonsl\jsonsl.c(921,1): warning C4996: 'strcpy': This function or variable
may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help fo
r details. [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\string.h(133): message : see declaration of 'strcpy'
   [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libbson\src\jsonsl\jsonsl.c(959,1): warning C4996: 'strcpy': This function or variable
may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help fo
r details. [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\string.h(133): message : see declaration of 'strcpy'
   [C:\mongo-cxx-test\libmongoc-build\src\libbson\bson_shared.vcxproj]
	common-b64.c
	common-md5.c
	common-thread.c
	Generating Code...
	   Creating library C:/mongo-cxx-test/libmongoc-build/src/libbson/Debug/bson-1.0.lib and object C:/mongo-cxx-test/l
  ibmongoc-build/src/libbson/Debug/bson-1.0.exp
	bson_shared.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libbson\Debug\bson-1.0.dll
	Building Custom Rule C:/mongo-cxx-test/libmongoc/src/libmongoc/CMakeLists.txt
cl : command line warning D9025: overriding '/W3' with '/w' [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_sha
red.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	adler32.c
	crc32.c
	deflate.c
	infback.c
	inffast.c
	inflate.c
	inftrees.c
	trees.c
	zutil.c
	compress.c
	uncompr.c
	gzclose.c
	gzlib.c
	gzread.c
	gzwrite.c
	hexlify.c
	kms_b64.c
	kms_caller_identity_request.c
	kms_crypto_apple.c
	kms_crypto_libcrypto.c
	Generating Code...
	Compiling...
	kms_crypto_none.c
	kms_crypto_windows.c
	kms_decrypt_request.c
	kms_encrypt_request.c
	kms_kv_list.c
	kms_message.c
	kms_port.c
	kms_request.c
	kms_request_opt.c
	kms_request_str.c
	kms_response.c
	kms_response_parser.c
	sort.c
	Generating Code...
	mongoc-aggregate.c
	mongoc-apm.c
	mongoc-array.c
	mongoc-async.c
	mongoc-async-cmd.c
	mongoc-buffer.c
	mongoc-bulk-operation.c
	mongoc-change-stream.c
	mongoc-client.c
	mongoc-client-pool.c
	mongoc-client-side-encryption.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-client-side-encryption.c(249,21): warning C4018: '<': signe
d/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongo
c.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-client-side-encryption.c(304,21): warning C4018: '<': signe
d/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongo
c.vcxproj]
	mongoc-cluster.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster.c(162,38): warning C4267: '+=': conversion from 'si
ze_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo
-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster.c(172,62): warning C4267: '=': conversion from 'siz
e_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-
cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster.c(3130,50): warning C4018: '>': signed/unsigned mis
match [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster.c(3215,21): warning C4267: '=': conversion from 'si
ze_t' to 'off_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mon
go-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster.c(3392,58): warning C4267: '=': conversion from 'si
ze_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\m
ongo-cxx-test\libmongoc.vcxproj]
	mongoc-cluster-aws.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws.c(512,1): warning C4142: '_mongoc_aws_credentia
ls_obtain': benign redefinition of type [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mon
go-cxx-test\libmongoc.vcxproj]
  C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws-private.h(40): message : see declaration of '
  _mongoc_aws_credentials_obtain' [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws.c(579,1): warning C4142: '_mongoc_validate_and_
derive_region': benign redefinition of type [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:
\mongo-cxx-test\libmongoc.vcxproj]
  C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws-private.h(48): message : see declaration of '
  _mongoc_validate_and_derive_region' [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws.c(934,1): warning C4142: '_mongoc_cluster_auth_
node_aws': benign redefinition of type [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mong
o-cxx-test\libmongoc.vcxproj]
  C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-cluster-aws-private.h(26): message : see declaration of '
  _mongoc_cluster_auth_node_aws' [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]
	mongoc-cluster-sasl.c
	mongoc-collection.c
	mongoc-compression.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-compression.c(51,32): warning C4267: 'function': conversion
 from 'size_t' to 'uLong', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj
] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-compression.c(181,38): warning C4267: 'function': conversio
n from 'size_t' to 'uLong', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxpro
j] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-compression.c(255,41): warning C4267: 'function': conversio
n from 'size_t' to 'uLong', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxpro
j] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-counters.c
	mongoc-crypt.c
	mongoc-cursor-array.c
	mongoc-cursor.c
	Generating Code...
	Compiling...
	mongoc-cursor-cmd.c
	mongoc-cursor-change-stream.c
	mongoc-cursor-cmd-deprecated.c
	mongoc-cursor-find.c
	mongoc-cursor-find-cmd.c
	mongoc-cursor-find-opquery.c
	mongoc-cursor-legacy.c
	mongoc-database.c
	mongoc-error.c
	mongoc-find-and-modify.c
	mongoc-init.c
	Configure the driver with ENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF. Automatic cleanup is deprecated and will be remove
  d in version 2.0.
	mongoc-gridfs.c
	mongoc-gridfs-bucket.c
	mongoc-gridfs-bucket-file.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-bucket-file.c(375,38): warning C4267: '+=': conversi
on from 'size_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcx
proj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-bucket-file.c(376,27): warning C4267: '+=': conversi
on from 'size_t' to 'uint32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vc
xproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-bucket-file.c(428,37): warning C4267: '+=': conversi
on from 'size_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcx
proj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-bucket-file.c(429,34): warning C4267: '+=': conversi
on from 'size_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcx
proj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-bucket-file.c(430,26): warning C4267: '+=': conversi
on from 'size_t' to 'uint32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vc
xproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-gridfs-file.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(448,18): warning C4018: '>=': signed/unsigned
 mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(515,18): warning C4018: '>': signed/unsigned
mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(585,21): warning C4018: '>=': signed/unsigned
 mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(602,79): warning C4244: 'function': conversio
n from 'uint64_t' to 'uint32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.v
cxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(836,36): warning C4018: '<=': signed/unsigned
 mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(882,12): warning C4018: '>': signed/unsigned
mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-gridfs-file.c(981,42): warning C4244: '=': conversion from
'uint64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]

part 2:

[C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-gridfs-file-list.c
	mongoc-gridfs-file-page.c
	mongoc-handshake.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-handshake.c(202,18): warning C4018: '<': signed/unsigned mi
smatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-handshake.c(298,1): warning C4996: 'GetVersionExA': was dec
lared deprecated [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.v
cxproj]
  C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\sysinfoapi.h(387): message : see declaration of 'GetVe
  rsionExA' [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-handshake.c(505,7): warning C4018: '<': signed/unsigned mis
match [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-host-list.c
	mongoc-http.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-http.c(194,46): warning C4244: '=': conversion from '__int6
4' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cx
x-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-http.c(197,75): warning C4267: '=': conversion from 'size_t
' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx
-test\libmongoc.vcxproj]
	Generating Code...
	Compiling...
	mongoc-index.c
	mongoc-interrupt.c
	mongoc-list.c
	mongoc-linux-distro-scanner.c
	mongoc-log.c
	mongoc-matcher.c
	mongoc-matcher-op.c
	mongoc-memcmp.c
	mongoc-cmd.c
	mongoc-opts-helpers.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-opts-helpers.c(67,30): warning C4267: 'function': conversio
n from 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj]
 [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-opts.c
	mongoc-queue.c
	mongoc-read-concern.c
	mongoc-read-prefs.c
	mongoc-rpc.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\op-msg.def(9,1): warning C4267: 'initializing': conversion from 's
ize_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mong
o-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-rpc.c(850,53): warning C4267: '=': conversion from 'size_t'
 to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-
test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-rpc.c(884,64): warning C4267: '=': conversion from 'size_t'
 to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-
cxx-test\libmongoc.vcxproj]
	mongoc-server-description.c
	mongoc-server-stream.c
	mongoc-client-session.c
	mongoc-server-monitor.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(242,56): warning C4244: '=': conversion fr
om 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj
] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(256,31): warning C4267: '=': conversion fr
om 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:
\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(262,71): warning C4244: 'function': conver
sion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.
vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(270,78): warning C4244: 'function': conver
sion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.
vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(281,78): warning C4244: 'function': conver
sion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.
vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(346,56): warning C4244: '=': conversion fr
om 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj
] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(358,31): warning C4267: '=': conversion fr
om 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:
\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(368,71): warning C4244: 'function': conver
sion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.
vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(548,67): warning C4244: 'function': conver
sion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.
vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(609,73): warning C4244: 'function': conver
sion from 'uint64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared
.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(1079,22): warning C4033: '_server_monitor_
thread' must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\
libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(1155,22): warning C4033: '_server_monitor_
rtt_thread' must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-t
est\libmongoc.vcxproj]
	mongoc-set.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-set.c(91,27): warning C4244: '=': conversion from '__int64'
 to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-
test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-set.c(201,17): warning C4267: 'function': conversion from '
size_t' to 'uint32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C
:\mongo-cxx-test\libmongoc.vcxproj]
	Generating Code...
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(1156): warning C4716: '_server_monitor_rtt
_thread': must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-tes
t\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-server-monitor.c(1080): warning C4716: '_server_monitor_thr
ead': must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\li
bmongoc.vcxproj]
	Compiling...
	mongoc-socket.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-socket.c(1219,62): warning C4267: 'function': conversion fr
om 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:
\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-socket.c(1286,39): warning C4267: 'function': conversion fr
om 'size_t' to 'DWORD', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [
C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-stream-buffered.c
	mongoc-stream.c
	mongoc-stream-file.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-file.c(133,63): warning C4267: 'function': conversio
n from 'size_t' to 'unsigned int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared
.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-file.c(177,65): warning C4267: 'function': conversio
n from 'size_t' to 'unsigned int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared
.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-stream-gridfs.c
	mongoc-stream-gridfs-download.c
	mongoc-stream-gridfs-upload.c
	mongoc-stream-socket.c
	mongoc-topology.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology.c(254,62): warning C4244: 'function': conversion f
rom 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxpro
j] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-topology-background-monitoring.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology-background-monitoring.c(77,22): warning C4033: 'sr
v_polling_run' must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cx
x-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology-background-monitoring.c(184,18): warning C4018: '<
': signed/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\
libmongoc.vcxproj]
	mongoc-topology-description.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology-description.c(729,65): warning C4018: '<=': signed
/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc
.vcxproj]
	mongoc-topology-description-apm.c
	mongoc-topology-scanner.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology-scanner.c(241,76): warning C4267: '=': conversion
from 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [
C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-uri.c
	mongoc-util.c
	mongoc-version-functions.c
	mongoc-write-command.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command.c(423,34): warning C4018: '>': signed/unsigne
d mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj
]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command.c(426,35): warning C4018: '>=': signed/unsign
ed mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxpro
j]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command.c(543,54): warning C4018: '<=': signed/unsign
ed mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxpro
j]
	mongoc-write-command-legacy.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command-legacy.c(176,15): warning C4018: '>': signed/
unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.
vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command-legacy.c(295,21): warning C4018: '>': signed/
unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.
vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command-legacy.c(462,21): warning C4018: '>': signed/
unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.
vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-write-command-legacy.c(475,21): warning C4018: '>': signed/
unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.
vcxproj]
	mongoc-write-concern.c
	common-b64.c
	Generating Code...
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-topology-background-monitoring.c(78): warning C4716: 'srv_p
olling_run': must return a value [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-
test\libmongoc.vcxproj]
	Compiling...
	common-md5.c
	common-thread.c
	mongoc-crypto.c
	mongoc-scram.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-scram.c(435,18): warning C4018: '<=': signed/unsigned misma
tch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-scram.c(673,18): warning C4018: '<': signed/unsigned mismat
ch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-scram.c(829,59): warning C4267: 'function': conversion from
 'size_t' to 'int', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\m
ongo-cxx-test\libmongoc.vcxproj]
	mongoc-stream-tls.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-tls.c(121,53): warning C4244: '=': conversion from '
int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C
:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-ssl.c
	mongoc-crypto-cng.c
	mongoc-rand-cng.c
	mongoc-stream-tls-secure-channel.c
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-tls-secure-channel.c(386,37): warning C4018: '>': si
gned/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmo
ngoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-tls-secure-channel.c(394,21): warning C4018: '<': si
gned/unsigned mismatch [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_shared.vcxproj] [C:\mongo-cxx-test\libmo
ngoc.vcxproj]
C:\mongo-cxx-test\libmongoc\src\libmongoc\src\mongoc\mongoc-stream-tls-secure-channel.c(752,58): warning C4244: '=': co
nversion from 'int64_t' to 'int32_t', possible loss of data [C:\mongo-cxx-test\libmongoc-build\src\libmongoc\mongoc_sha
red.vcxproj] [C:\mongo-cxx-test\libmongoc.vcxproj]
	mongoc-secure-channel.c
	mongoc-sasl.c
	mongoc-cluster-sspi.c
	mongoc-sspi.c
	Generating Code...
	   Creating library C:/mongo-cxx-test/libmongoc-build/src/libmongoc/Debug/mongoc-1.0.lib and object C:/mongo-cxx-te
  st/libmongoc-build/src/libmongoc/Debug/mongoc-1.0.exp
	mongoc_shared.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libmongoc\Debug\mongoc-1.0.dll
	Building Custom Rule C:/mongo-cxx-test/libmongoc/src/libmongoc/CMakeLists.txt
	mongoc-stat.c
	mongoc-stat.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libmongoc\Debug\mongoc-stat.exe
	Building Custom Rule C:/mongo-cxx-test/libmongoc/CMakeLists.txt
  Performing install step for 'libmongoc'
  Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

	bson_shared.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libbson\Debug\bson-1.0.dll
	mongoc_shared.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libmongoc\Debug\mongoc-1.0.dll
	mongoc-stat.vcxproj -> C:\mongo-cxx-test\libmongoc-build\src\libmongoc\Debug\mongoc-stat.exe
	-- Install configuration: "Debug"
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_1.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_2.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_codecvt_ids.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140_1.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/concrt140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin
	-- Installing: C:/mongo-cxx-test/libmongoc-install/share/mongo-c-driver/COPYING
	-- Installing: C:/mongo-cxx-test/libmongoc-install/share/mongo-c-driver/NEWS
	-- Installing: C:/mongo-cxx-test/libmongoc-install/share/mongo-c-driver/README.rst
	-- Installing: C:/mongo-cxx-test/libmongoc-install/share/mongo-c-driver/THIRD_PARTY_NOTICES
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_2.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_codecvt_ids.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/concrt140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_2.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_codecvt_ids.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/concrt140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/bson-1.0.lib
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/bson-1.0.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-config.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-version.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bcon.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-atomic.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-clock.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-compat.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-context.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-decimal128.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-endian.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-error.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-iter.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-json.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-keys.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-macros.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-md5.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-memory.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-oid.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-prelude.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-reader.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-string.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-types.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-utf8.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-value.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-version-functions.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson/bson-writer.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libbson-1.0/bson.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/pkgconfig/libbson-1.0.pc
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/bson-1.0/bson-targets.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/bson-1.0/bson-targets-debug.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/bson-1.0/bson-1.0-config.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/bson-1.0/bson-1.0-config-version.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/libbson-1.0/libbson-1.0-config.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/libbson-1.0/libbson-1.0-config-version.cmake
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_2.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_codecvt_ids.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/concrt140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_2.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/msvcp140_codecvt_ids.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140_1.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/vcruntime140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin/concrt140.dll
	-- Up-to-date: C:/mongo-cxx-test/libmongoc-install/bin
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/mongoc-1.0.lib
	-- Installing: C:/mongo-cxx-test/libmongoc-install/bin/mongoc-1.0.dll
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-config.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-version.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-apm.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-bulk-operation.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-change-stream.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-client.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-client-pool.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-client-side-encryption.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-collection.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-cursor.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-database.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-error.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-flags.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-find-and-modify.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-gridfs.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-gridfs-bucket.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-gridfs-file.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-gridfs-file-page.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-gridfs-file-list.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-handshake.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-host-list.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-init.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-index.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-iovec.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-log.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-macros.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-matcher.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-opcode.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-prelude.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-read-concern.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-read-prefs.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-server-description.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-client-session.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-socket.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-tls-libressl.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-tls-openssl.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-buffered.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-file.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-gridfs.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-socket.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-topology-description.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-uri.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-version-functions.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-write-concern.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-rand.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-stream-tls.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc/mongoc-ssl.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/include/libmongoc-1.0/mongoc.h
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/pkgconfig/libmongoc-1.0.pc
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/pkgconfig/libmongoc-ssl-1.0.pc
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/mongoc-1.0/mongoc-targets.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/mongoc-1.0/mongoc-targets-debug.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/mongoc-1.0/mongoc-1.0-config.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/mongoc-1.0/mongoc-1.0-config-version.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/libmongoc-1.0/libmongoc-1.0-config.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/lib/cmake/libmongoc-1.0/libmongoc-1.0-config-version.cmake
	-- Installing: C:/mongo-cxx-test/libmongoc-install/share/mongo-c-driver/uninstall.cmd
  Completed 'libmongoc'
  Creating directories for 'libmongocxx'
  Building Custom Rule C:/mongo-cxx-test/CMakeLists.txt
  Performing download step (git clone) for 'libmongocxx'
  Cloning into 'libmongocxx'...
  remote: Enumerating objects: 26884, done.
  remote: Counting objects:   0% (1/26884)
  ...
  remote: Counting objects: 100% (26884/26884), done.
  remote: Compressing objects:   0% (1/4136)
  ...
  remote: Compressing objects: 100% (4136/4136), done.
  Receiving objects:   0% (1/26884)
  ...
  Receiving objects:  99% (26616/26884), 8.86 MiB | 1.60 MiB/s
  remote: Total 26884 (delta 24123), reused 24493 (delta 22592), pack-reused 0
  Receiving objects: 100% (26884/26884), 9.93 MiB | 1.36 MiB/s, done.
  Resolving deltas:   0% (0/24123)
  ...
  Resolving deltas: 100% (24123/24123), done.
  Branch 'releases/v3.6' set up to track remote branch 'releases/v3.6' from 'origin'.
  Switched to a new branch 'releases/v3.6'
  Performing update step for 'libmongocxx'
  No patch step for 'libmongocxx'
  Performing configure step for 'libmongocxx'
  loading initial cache file C:/mongo-cxx-test/libmongocxx-prefix/tmp/libmongocxx-cache-Debug.cmake
  -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.16299.
  -- The CXX compiler identification is MSVC 19.24.28316.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24
  .28314/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonInterp: E:/dev/Tools/Python3/python.exe (found version "3.7")
  -- No build type selected, default is Release
  -- The C compiler identification is MSVC 19.24.28316.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.24.2
  8314/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  bsoncxx version: 0.0.0
  CMake Warning at C:/mongo-cxx-test/libmongoc-install/lib/cmake/libbson-1.0/libbson-1.0-config.cmake:15 (message):
	This CMake target is deprecated.  Use 'mongo::bson_shared' instead.
	Consult the example projects for further details.
  Call Stack (most recent call first):
	src/bsoncxx/CMakeLists.txt:98 (find_package)

part 3:

  found libbson version 1.17.0
  -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
  -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
  mongocxx version: 0.0.0
  CMake Warning at C:/mongo-cxx-test/libmongoc-install/lib/cmake/libmongoc-1.0/libmongoc-1.0-config.cmake:15 (message):
	This CMake target is deprecated.  Use 'mongo::mongoc_shared' instead.
	Consult the example projects for further details.
  Call Stack (most recent call first):
	src/mongocxx/CMakeLists.txt:54 (find_package)


  CMake Warning at C:/mongo-cxx-test/libmongoc-install/lib/cmake/libbson-1.0/libbson-1.0-config.cmake:15 (message):
	This CMake target is deprecated.  Use 'mongo::bson_shared' instead.
	Consult the example projects for further details.
  Call Stack (most recent call first):
	C:/mongo-cxx-test/libmongoc-install/lib/cmake/libmongoc-1.0/libmongoc-1.0-config.cmake:22 (find_package)
	src/mongocxx/CMakeLists.txt:54 (find_package)


  found libmongoc version 1.17.0
  -- Looking for C++ include pthread.h
  -- Looking for C++ include pthread.h - not found
  -- Found Threads: TRUE
  -- Build files generated for:
  --    build system: Visual Studio 16 2019
  --    instance: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise
  -- Configuring done
  -- Generating done
  -- Build files have been written to: C:/mongo-cxx-test/libmongocxx-build
  Performing build step for 'libmongocxx'
  Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

	Checking Build System
	Creating directories for 'EP_mnmlstc_core'
	Building Custom Rule C:/mongo-cxx-test/libmongocxx/src/bsoncxx/third_party/CMakeLists.txt
	Performing download step (git clone) for 'EP_mnmlstc_core'
	-- EP_mnmlstc_core download command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_part
  y/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-download-*.log
	No update step for 'EP_mnmlstc_core'
	No patch step for 'EP_mnmlstc_core'
	Performing configure step for 'EP_mnmlstc_core'
	-- EP_mnmlstc_core configure command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_par
  ty/EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-configure-*.log
	Performing build step for 'EP_mnmlstc_core'
	-- EP_mnmlstc_core build command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_party/E
  P_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-build-*.log
	Performing install step for 'EP_mnmlstc_core'
	-- EP_mnmlstc_core install command succeeded.  See also C:/mongo-cxx-test/libmongocxx-build/src/bsoncxx/third_party
  /EP_mnmlstc_core-prefix/src/EP_mnmlstc_core-stamp/EP_mnmlstc_core-install-*.log
	Performing fix-includes step for 'EP_mnmlstc_core'
	'xargs' is not recognized as an internal or external command,
	operable program or batch file.
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(23
1,5): error MSB6006: "cmd.exe" exited with code 255. [C:\mongo-cxx-test\libmongocxx-build\src\bsoncxx\third_party\EP_mn
mlstc_core.vcxproj] [C:\mongo-cxx-test\libmongocxx.vcxproj]

This is rather strange. The error output you posted last does not lead to the initial error you described. You probably cannot use the MNMLSTC/core polyfill since your platform is Windows. According to Step 2 in the installation documentation, you will need to use Boost on Windows. Using MNMLSTC/core is leading to the xargs error, since it is pulling in an external project that assumes a non-Windows platform. Could you go back to the earlier configuration that produced the initial error and post the complete output from that build?

Ok so going back to my original methodology:

Install Mongo-C-Driver using

git clone https://github.com/mongodb/mongo-c-driver.git
cd mongo-c-driver
git checkout 1.17.0 # To build a particular release
python build/calc_release_version.py > VERSION_CURRENT
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF …

I then open the project files into Visual Studio and build INSTALL in there.

OMG ITS WORKING
I was using the wrong dir for DCMAKE_PREFIX_PATH, it was installing to program files!!! will continue with how i did it just for others

Then for mongocxx:

Downloaded 3.6.0 from the downloads:
called the follwoing:

cmake … -DBOOST_ROOT=E:\dev\git\externalapi\boost -DCMAKE_PREFIX_PATH=“C:\Program Files (x86)\mongo-c-driver” -DCMAKE_INSTALL_PREFIX=“C:\Program Files (x86)\mongo-cxx-driver” -DBUILD_VERSION=3.6.0 -DBoost_INCLUDE_DIR=E:\dev\git\externalapi\boost\1.68

then built in the visual studio projects :smiley: thanks for the help!!

Cool. I’m really glad it works now.

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