C++程序中出现 fatal error C1189 #error eh.h is only for C++!
核心提示:increatingdynamicdllvc++6.0: addedsome.hand.cfilestoit. iget: fatalerrorC1189:#error:\"eh.hisonlyforC++!\"
in creating dynamic dll vc++ 6.0:
added some .h and .c files to it.
i get:
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>
added some .h and .c files to it.
i get:
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>
相关阅读:
网友评论:
- 最新试题
- 考试大纲
热门文章
加载中...
返回顶部

