नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
'variable1' : cannot be initialized using address of automatic variable 'variable2'
Remarks
When compiling with /Za, the program tried to use the address of an automatic variable as an initializer.
Example
The following example generates C2093:
// C2093.c
// compile with: /Za /c
void func() {
int li; // an implicit auto variable
int * s[]= { &li }; // C2093 address is not a constant
// OK
static int li2;
int * s2[]= { &li2 };
}