I try to port my game code to Unix platform from windows 7. I’m using compiled from source latest c++ mongodb driver. Same steps as on windows. But i met some troubles with mongoclient library linking. I have branch of errors here Many many errors. When i dont link libmongoclient.a at all g++ generates same errors. I have g++ 4.4.5 version. What i missed here?
Update:
I’m trying to compile with mongo_client_lib.cpp Result will announce later. After recompiling boost and mongo still same errors. When i include mongo_client_lib.cpp i have More errors. It still doesn’t see library file for mongo client. =/
Finally reason was in wrong compilation mode. MongoDb provides driver for release builds. I was built in debug mode. Building in release x64 made mongoclient work!