Boost logo

Boost Users :

Subject: Re: [Boost-users] [program_options] linker error LNK2005 (symbol already defined in object)
From: Germain BARRET (germain.barret_at_[hidden])
Date: 2008-10-01 03:47:28


I've used BOOST_ALL_STATIC_LINK
I've declared my path to the static libs,
And also, I have the errors :
Error 2 error LNK2005: "public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::operator=(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(??4?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@
@QAEAAV01_at_ABV01@@Z) already defined in
libboost_filesystem-vc80-mt-sgd-1_35.lib(operations.obj) msvcprtd.lib
[...]

And what's more this error :
Error 26 fatal error LNK1104: cannot open file
'libboost_filesystem-vc80-mt-gd-1_35.lib' makePatch

Why is it still searching a dynamic lib ??? nevermind dynamic libs !!!

I have only 7 files in my program, it's not complicated to check all.

What is the boost concept of autolink ?

My static libs have been installed by the exe distributed with all libs
(static dyn, debug not debg.. and so on)

2008/9/4 Olaf Peter <ope-devel_at_[hidden]>

> Thanks to all answers, I'm using really cmake. Obviously I have to go more
> into the deep since the cmake macro does a bad job here. Define
> BOOST_ALL_DYN_LINK works for this time since I want static linkage.
>
> <OT>
> How can I set the English locale for MSVC compiler cl.exe inside VS IDE?
> which should be in current locale.
> </OT>
>
>
> Thanks,
> Olaf
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net