Message <Context> the storage class modifier __declspec(thread) cannot be used with the -static option. The storage class modifier is ignored. Description Thread-local storage cannot be declared in compilations that are performed with the -static option. The compiler will ignore the __declspec(thread) storage class modifier. User Action Either remove the __declspec(thread) storage class modifier or do not compile with the -static option.