Details
-
Task
-
Resolution: Works as Designed
-
Critical - P2
-
None
-
3.1.3
-
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?