Message <Context> the __declspec(thread) storage class modifier requires a storage class of extern, static, or none. Modifier is ignored. Description Declaring a file-scope object with thread-local storage requires that the object have a storage class of extern, static or none. In other cases, the compiler will ignore the __declspec(thread) storage class modifier. User Action Either remove the storage class modifier or change the storage class to one that is valid for __declspec(thread).