I have a project which uses the MongoDB C++ driver. As I'm on WinXP I have to use MongoDB 2.0, which uses Boost 1.42. However my application uses Boost 1.48.
When I statically link the MongoDB driver and build my application I get a LNK1104 linker error that libboost_system-vc100-md-gd-1_42.lib is missing. When I add this library in addition to the in the app required 1.48 library version, I get a LNK2005 "boost::system::throws already defined" linker error.
Is there a way to use Boost 1.42 in my static library for MongoDB and use Boost 1.48 in my application?