我在一个C Project中加入了几个C++文件,并在C程序中定义了了C++对象,进行调用时遇到这个错误提示,谁能告诉我该怎么解决?c:\program files\microsoft visual studio\vc98\include\eh.h(32) : fatal error C1189: #error : "eh.h is only for C++!"
Error executing cl.exe.eh.h(32)是这样的:#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
Error executing cl.exe.eh.h(32)是这样的:#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
删掉,不过还是可能会有问题
==========================
这就是错误所在,你可以尝试把.c文件命名为.cpp文件