VC提示怎么办?
来源:百度知道 编辑:UC知道 时间:2024/05/17 22:42:51
c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error C1189: #error : "eh.h is only for C++!"
执行 cl.exe 时出错.
执行 cl.exe 时出错.
在eh.h中有这样的语句
#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
所以会出现上面的问题
建议你使用.cpp文件而不是.c文件
希望对你有帮助