NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2093

'variable1' : cannot be initialized using address of automatic variable 'variable2'

When compiling with /Za , the program tried to use the address of an automatic variable as an initializer. The following sample generates C2093:

void func() {
    int li;   // an implicit auto variable
    int * s[]= { &li };   // C2093, address is not a constant
}

void main() {
}