This is a quite a annoying error, supposedly Visual Studio 2012 is designed to support the C++ 11 Standard, and therefore should support the thread_local keyword. However, in my case, it doesn't seem to be supporting thread_local at all...