fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler

简介: fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler

错误日志

截屏

文本

F:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\yvals_core.h(23,1): fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler.

F:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include\yvals_core.h(23,1): fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler.


错误

解决方案

这个问题是因为在C文件中引用了C++的头文件。 只需要将cmath换成math.h


C++常见错误

error C2041: illegal digit ‘9‘ for base ‘8‘ | error C2059: syntax error: ‘bad suffix on number‘


Error:QSqlDatabase: QMYSQL driver not loaded (Qt+C++ 找不到mysql的驱动)


Qt5Error:msvc-version.conf loaded but QMAKE_MSC_VER ins‘t set


Error:E0415 no suitable constructor exists to convert from “int“ to “Rational“


Error:error C2601: ‘b‘ : local function definitions are illegal error C2063: ‘b‘ : not a function


Error:E0415 no suitable constructor exists to convert from “int“ to “Rational“

目录
相关文章
|
API C++
fatal error C1093 系统找不到指定的路径 C++/C VS2008
fatal error C1093: API call 'ImportFile' failed '0x80070003' : ErrorMessage: 系统找不到指定的路径(The system can't find the directory properly)。
1109 0
|
5天前
|
存储 编译器 C语言
c++的学习之路:5、类和对象(1)
c++的学习之路:5、类和对象(1)
19 0
|
30天前
|
存储 C++ 容器
C++入门指南:string类文档详细解析(非常经典,建议收藏)
C++入门指南:string类文档详细解析(非常经典,建议收藏)
38 0
|
30天前
|
存储 编译器 C语言
C++入门: 类和对象笔记总结(上)
C++入门: 类和对象笔记总结(上)
34 0
|
5天前
|
C++
c++的学习之路:7、类和对象(3)
c++的学习之路:7、类和对象(3)
19 0
|
4天前
|
设计模式 Java C++
【C++高阶(八)】单例模式&特殊类的设计
【C++高阶(八)】单例模式&特殊类的设计
|
4天前
|
编译器 C++
【C++基础(八)】类和对象(下)--初始化列表,友元,匿名对象
【C++基础(八)】类和对象(下)--初始化列表,友元,匿名对象
|
8天前
|
存储 安全 C语言
【C++】string类
【C++】string类
|
存储 编译器 Linux
标准库中的string类(中)+仅仅反转字母+字符串中的第一个唯一字符+字符串相加——“C++”“Leetcode每日一题”
标准库中的string类(中)+仅仅反转字母+字符串中的第一个唯一字符+字符串相加——“C++”“Leetcode每日一题”
|
10天前
|
编译器 C++
标准库中的string类(上)——“C++”
标准库中的string类(上)——“C++”