Export (0) Print
Expand All
Expand Minimize

Compiler Error C2094

label 'identifier' was undefined

The label used by a goto statement does not exist in the function.

The following sample generates C2094:

// C2094.c
int main() {
   goto test;
}   // C2094

Possible resolution:

// C2094b.c
int main() {
   goto test;
   test: 
   {
   }
}

Community Additions

ADD
Show:
© 2014 Microsoft