Boost logo

Boost :

Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Fu ji (fujimailing_at_[hidden])
Date: 2015-04-29 09:40:22


Maybe it's because in solutionB I have delaration of tls (in other way I
have problem with building solution:

file.obj : error LNK2001: unresolved external symbol "public: static class
boost::thread_specific_ptr<classnamespace::CClass>
namespace::CThreadLocalStorageSlot::ThreadLocalStorage_"
(?ThreadLocalStorage__at_CThreadLocalStorageSlot@tnamespace@
@2V?$thread_specific_ptr_at_VCThread@namespace@@@boost@@A)

)

2015-04-29 15:18 GMT+02:00 Andrey Semashev <andrey.semashev_at_[hidden]>:

> On Wed, Apr 29, 2015 at 4:13 PM, Fu ji <fujimailing_at_[hidden]> wrote:
> > Tls is in header in SolutionC.
>
> If that header is #included in SolutionB somewhere and TLS is defined
> in that header (e.g. with the static keyword, like in your initial
> post) then that variable is again duplicated in both solutions.
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk