分享方式:


編譯器錯誤 C2094

標籤 'identifier' 未定義

函式中沒有 goto 陳述式所使用的標籤。

範例

下列範例會產生 C2094:

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

可能的解決方式:

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