exctern C
在C 中调用C语言
因为C 扩展了函数重载。编译时会将函数名修改,所以直接条用会出错。
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/*
#include <stdio.h>
void show()
*/
#ifdef __cplusplus
}
#endif // __cplusplus
把要是C编译的代码给extern “”C“”{起来}
温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/a/17233.html
- 上一篇:设计模式之工厂设计模式
- 下一篇:equals 和 == 区别 。