c++ - Using multiple versions of boost -


i have project uses mongodb c++ driver. i'm on winxp have use mongodb 2.0, uses boost 1.42. application uses boost 1.48.

when statically link mongodb driver , build application lnk1104 linker error libboost_system-vc100-md-gd-1_42.lib missing. when add library in addition in app required 1.48 library version, lnk2005 "boost::system::throws defined" linker error.

is there way use boost 1.42 in static library mongodb , use boost 1.48 in application?

you split build process: first compile mongdb c++ driver separate .lib while linking against boost 1.42.0 in second step compile own application, linking against mongodb library , boost 1.48.0. should work long mongdb .lib not expose of boost functions such boost::system::throws. see question how limit public interface exposing boost symbols.

alternatively, try compiling entire application single boost version (either 1.42 or 1.48).


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -