错误日志
截屏
文本
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“