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: 
   {
   }
}