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

Unable to find libmongocxx.lib and libbsconcxx.lib AND member "bsoncxx::v_noabi::types::b_double::type_id"

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.4.1
    • Component/s: Build
    • None
    • Environment:
      VS2015 x64 , Boost_1.69, Cmake 3.16.6, mongocxx 3.4.1 mongoc 1.16.2

      Hi, I am trying to use mongoDB by visual studio 2015. I followed instruction till this point where i get 2 errors. 
      1) member "bsoncxx::v_noabi::types::b_double::type_id" may not be initialized Project1 c:\mongo-cxx-driver-r3.4.1\include\bsoncxx\v_noabi\bsoncxx\types.hpp 86 .........
      2) LNK1104 cannot open file 'libbsoncxx.lib' Project1 C:\Users\STEE - 28.02.2019\Desktop\Testing Project Files\Project1\Project1\LINK 1

      I followed the instruction from http://mongocxx.org/mongocxx-v3/installation/ and https://github.com/rcsalvador/mongocxx-vs2015 but to no avail. It would appear that maybe i am missing libmongocxx.lib and libbsoncxx.lib ? Did i miss a step? 

      For cxx component, this is the syntax I did for VS2015 developer cmd;

      (1) config by  VS2015 developer cmd

      cmake "-DCMAKE_BUILD_TYPE=Release" "-DBSONCXX_POLY_USE_BOOST=1" "-DCMAKE_PREFIX_PATH=C:\mongo-c-driver-1.16.2" "-DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-r3.4.1" ..

      (2) Build and install by VS2015 MSbuild cmd

      msbuild.exe ALL_BUILD.vcxproj

      msbuild.exe INSTALL.vcxproj 

      (3) config by  VS2015 developer cmd

      cmake -G “Visual Studio 14 2015” “-DCMAKE_BUILD_TYPE=Release” “-DCMAKE_INSTALL_PREFIX=C:\mongo-cxx-r3.4.1” “-DCMAKE_PREFIX_PATH=C:\mongo-c-driver-1.16.2” “-DBOOST_ROOT=C:\boost\boost_1_69_0“ ..

      (4) Build and install by VS2015 MSbuild cmd

      msbuild.exe ALL_BUILD.vcxproj

      msbuild.exe INSTALL.vcxproj 

       

      Please help. Thank you. 

        1. snip2.PNG
          snip2.PNG
          99 kB
        2. snip1.PNG
          snip1.PNG
          112 kB

            Assignee:
            adrian.dole@mongodb.com Adrian Dole
            Reporter:
            thisismatin@gmail.com Matin F
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: