Compiler Error C2094

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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:   
   {  
   }  
}  

Show: