This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
Compiler Error C2390
'identifier' : incorrect storage class 'specifier'
The storage class is not legal for the global-scope identifier. The default storage class is used in place of the illegal class.
Possible solutions
- If the identifier is a function, declare it with extern storage.
- If the identifier is a formal parameter or local variable, declare it with auto storage.
- If the identifier is a global variable, declare it with no storage class (auto storage).
Example
register int i; //error
void main ()
{
register int j; //OK
}