I have problem with error LNK2001: unresolved external symbol.
I have a class CThread split to CThread.h and CThread.cpp
In CThread.h i have included boost/thread/tss.hpp, i have also 2 class:
CThreadLocalStorageSlot and CThread : public CThreadLocalStorageSlot (derived).
in class CThreadLocalStorageSlot i have:
static boost::thread_specific_ptr ThreadLocalStorage_;
but in linking time i have:
1>CThread.obj : error LNK2001: unresolved external symbol "public: static class boost::thread_specific_ptr CThreadLocalStorageSlot::ThreadLocalStorage_" (?ThreadLocalStorage_@CThreadLocalStorageSlot@threads@2V?$thread_specific_ptr@VCThread@threads@@boost@@A)
Why ? i have included boost file which is responsible for TLS so i have definition of thread_specific_pt.
Any sugestion ?
Best regards