30 Apr
2015
30 Apr
'15
12:18 p.m.
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 have:
extern __declspec(dllexport) boost::thread_specific_ptr<int> ThreadLocalStorage;
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?