
Ferdinand Prantl wrote:
_RTLDLL reminds me of borland or some other compiler, microsoft sets _DLL internally, if you use dynamic runtime (/MD or MDd).
You are right, thanks for pointing this out. If anybody wants to play with my test project, please udate relevant part of test685.cpp with: #if defined(_DLL) && defined(NDEBUG) #pragma comment (lib, "../DllRelease/pe_tls.lib") #pragma message("using MSVCRT.DLL") #elif defined(_DLL) && defined(_DEBUG) #pragma comment (lib, "../DllDebug/pe_tls.lib") #pragma message("using MSVCRTD.DLL") #elif !defined(_DLL) && defined(_MT) && defined(NDEBUG) #pragma comment (lib, "../Release/pe_tls.lib") #pragma message("using LIBCMT.LIB") #elif !defined(_DLL) && defined(_MT) && defined(_DEBUG) #pragma comment (lib, "../Debug/pe_tls.lib") #pragma message("using LIBCMTD.LIB") #else #error You need to use multithreaded CRT (/MD, /MDd, /MT or /MTd) #endif B.