
Olaf Peter wrote:
Hi,
I've got the linker error LNK2005 (http://msdn.microsoft.com/en-us/library/72zdcz6f(VS.80).aspx) using MSVC80 (Studio 2005):
libboost_program_options-vc80-mt-1_35.lib(value_semantic.obj) : error LNK2005: "public: __thiscall boost::program_options::invalid_option_value::invalid_option_value(class std::basic_string
const &)" (??0invalid_option_value@program_options@boost@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V $allocator@D@2@@std@@@Z) ist bereits in boost_program_options-vc80-mt-1_35.lib(boost_program_options-vc80-mt-1_35.dll) definiert.
BTW, it's better to use English locale so that your errors message are clear to everybody. It appears that one part of your applications links to libboost_program_options-vc80-mt-1_35.lib (static library) while another links to boost_program_options-vc80-mt-1_35.lib (import lib). The only reason I can imagine for that is that parts of your applications are built with different settings -- in particular BOOST_ALL_DYN_LINK macro. Try cleaning everything, making sure that macro is set the the same value everywhere, and try again. - Volodya