Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1286

building mongodbcxx on Windows

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Build
    • Environment:
      Windows 10, MSVS 2015 Update 3, mongodbcxx master branch
      boost 1.63.0

      I installed mongodbcxx using following command

      cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local "-DLIBBSON_DIR=C:/mongo-c-driver/" "-DLIBMONGOC_DIR=C:/mongo-c-driver/" "-DBOOST_ROOT:PATH=C:\Program Files\boost\boost_1_63_0" "-DBSONCXX_POLY_USE_BOOST=1" ..
      

      Then I did msbuild.exe ALL_BUILD.vcxproj to build the MSVS project file which resulted in 327 errors.

      One of errors was

      src\mongocxx/test_util/mock.hh(173): error C3861: 'assert': identifier not found
      

      so I added #include <assert.h> to mock.hh and errors were reduced down to 80.

      The rest has to do with bsoncxx and I was wondering if I could get any help.

      Attached the command prompt error message as txt file

        1. msbuild_version.txt
          0.2 kB
        2. mongocxx.vcxproj
          40 kB
        3. experiment.diff
          2 kB
        4. error_msg.txt
          49 kB
        5. cmake_output.txt
          0.3 kB
        6. cmake_compile_output.txt
          1 kB
        7. build.zip
          333 kB
        8. ALLBUILD_output.txt
          23 kB

            Assignee:
            rassi J Rassi
            Reporter:
            ysw0927 Seungwon Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: