fatal error C1189: #error : "eh.h is only for C++!"
#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
The cause :
include a C++ header file in a .c file.
for example: In a.c, you included <iostream>
#ifndef __cplusplus
#error "eh.h is only for C++!"
#endif
The cause :
include a C++ header file in a .c file.
for example: In a.c, you included <iostream>