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

Compiling with c++17 and STL features using MinGW 7.2

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.1.3
    • Component/s: None
    • None
    • Environment:
      Windows 10 / mingw64 7.2
    • Fully Compatible

      cmake command
      cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\lib\mongo-cxx-driver -DLIBBSON_DIR=c:\lib\mongo-c-driver -DLIBMONGOC_DIR=c:\lib\mongo-c-driver -DBSONCXX_POLY_USE_STD_EXPERIMENTAL=1 -DCMAKE_CXX_STANDARD=17

      File changes to be able to compile
      File src\bsoncxx\util\functor.hpp
      Add #include <functional>

      File src\mongocxx\private\libbson.hh
      Remove l.61 : explicit scoped_bson_t(bsoncxx::document::view_or_value doc);
      Remove l.75 : void init_from_static(bsoncxx::document::view_or_value doc);
      Remove respective impl in libbson.cpp

      File src\third_party\catch\include\catch.hpp
      Comment l.823, not sure how it should be fixed, error is : error: ISO C++ forbids comparison between pointer and integer [-fpermissive]

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            ads00 ads00
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: