Subject: Re: [boost] [threads] Unexpected behaviour of Thread loal storage
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-04-30 08:18:18
On Thursday 30 April 2015 11:05:05 Fu ji wrote:
> Thank you for help Andrey but it's still not working.
> Right now I sipmlify it to minimum, in SolutionC (dll) in Include (tls.h) I
> extern __declspec(dllexport) boost::thread_specific_ptr<int>
> in the same soltuion but in Src i have tls.cpp with:
> __declspec(dllexport) boost::thread_specific_ptr<int> ThreadLocalStorage;
> and this is ok, compile with any problems.
> SolutionB(dll) in file.pp I have:
> __declspec(dllimport) boost::thread_specific_ptr<int> ThreadLocalStorage;
Did you forget 'extern' here?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk