{
  "id": "cmake/unknown-feature-cxx-std-98",
  "signature": "CMake Error: Feature cxx_std_98 is not available. Check that the compiler supports CXX_STANDARD 98.",
  "signature_zh": "CMake 错误：特性 cxx_std_98 不可用。请检查编译器是否支持 CXX_STANDARD 98。",
  "regex": "Feature cxx_std_98 is not available",
  "domain": "cmake",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "CMake 3.1+ removed support for C++98 as a compile feature, so setting CMAKE_CXX_STANDARD to 98 or using cxx_std_98 in target_compile_features causes an error.",
  "root_cause_type": "generic",
  "root_cause_zh": "CMake 3.1 及以上版本移除了对 C++98 作为编译特性的支持，因此将 CMAKE_CXX_STANDARD 设置为 98 或在 target_compile_features 中使用 cxx_std_98 会导致错误。",
  "versions": [
    {
      "version": "CMake 3.27",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CMake 3.28",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "CMake 3.29",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "CMake still validates the feature set; setting REQUIRED to OFF only makes it non-fatal but the feature is still unavailable, leading to silent build failures.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The feature is hardcoded in CMake's internal compiler detection; custom definitions cannot override it.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "set(CMAKE_CXX_STANDARD 11)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\nset(CMAKE_CXX_EXTENSIONS OFF)",
      "success_rate": 0.85,
      "how": "set(CMAKE_CXX_STANDARD 11)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\nset(CMAKE_CXX_EXTENSIONS OFF)",
      "condition": "",
      "sources": []
    },
    {
      "action": "cmake -version  # check current version\n# Install CMake 3.0 from https://cmake.org/files/v3.0/",
      "success_rate": 0.7,
      "how": "cmake -version  # check current version\n# Install CMake 3.0 from https://cmake.org/files/v3.0/",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "set(CMAKE_CXX_STANDARD 11)\nset(CMAKE_CXX_STANDARD_REQUIRED ON)\nset(CMAKE_CXX_EXTENSIONS OFF)",
    "cmake -version  # check current version\n# Install CMake 3.0 from https://cmake.org/files/v3.0/"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://cmake.org/cmake/help/latest/manual/cmake-compile-features.7.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "partial",
  "first_seen": "2023-06-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}