🚨 GCC 命令未找到
简单
系统提示"gcc: command not found"或"gcc不是内部命令",无法使用GCC编译器编译C++程序。
bash: gcc: command not found
🔍 Clang 命令未找到
简单
系统提示"clang: command not found",无法使用Clang编译器,特别是在macOS和Linux系统上。
clang: command not found
🖥️ MSVC 编译器错误
中等
Visual Studio编译器(MSVC)的各种编译错误,包括C2039、C2065、LNK2019等常见错误。
error C2039: 'xxx' : is not a member of 'std'
📝 C++ 模板错误
困难
C++模板编译错误,包括模板参数推导失败、SFINAE错误、概念约束错误等复杂问题。
error: no matching function for template
📋 头文件未找到
中等
编译器提示找不到头文件,如iostream、vector等标准库头文件,或自定义头文件路径问题。
fatal error: iostream: No such file or directory
🔧 C++ 标准版本错误
简单
使用了不支持的C++标准特性,如C++11、C++14、C++17、C++20的语法在旧编译器上报错。
error: 'auto' type specifier is a C++11 extension