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

Can I use mongocxx 3.1.3 and MongoDB 3.4 with 32-bit software?

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Works as Designed
    • Affects Version/s: 3.1.3
    • Fix Version/s: None
    • Component/s: BSON, Build
    • Environment:
      x86_64 machine with VMWare/CentOS 7.4 and MongoDB 3.4, Mongo C++ driver 3.1.3 installed

      Description

      I have some code that I compile using the -m32 option with g+. The software is 32-bit so it needs to be compiled as such. I want to integrate MongoDB and the Mongo C+ driver with this code.

      When I compile my code I get errors like this:

      /usr/bin/ld: skipping incompatible /usr/local/lib/libmongocxx.so when searching for -lmongocxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libmongocxx.a when searching for -lmongocxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libmongocxx.so when searching for -lmongocxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libmongocxx.a when searching for -lmongocxx
      /usr/bin/ld: cannot find -lmongocxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libbsoncxx.so when searching for -lbsoncxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libbsoncxx.a when searching for -lbsoncxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libbsoncxx.so when searching for -lbsoncxx
      /usr/bin/ld: skipping incompatible /usr/local/lib/libbsoncxx.a when searching for -lbsoncxx
      /usr/bin/ld: cannot find -lbsoncxx
      

      I have been able to successfully use the C++ driver to write programs that I didn't compile with the -m32 option, but is there a workaround to using C++ driver 3.1.3 and MongoDB 3.4 with 32-bit compilation?

      Or do I have to use an older version of MongoDB and the legacy C++ driver?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: