根据预处理器区分函数
#ifdef __cplusplus
extern "C" {
#endif
void funA();
void funB();
void funC();
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
extern "C" {
#endif
void funA();
void funB();
void funC();
#ifdef __cplusplus
}
#endif
上一篇:apriltag国内镜像
下一篇:Qt截取屏幕
C++之调用 C语言函数
函数调用
文章目录1.C调用C++2.C++调用C1.C调用C++若C调用的是C++全部函数的代码将函数用exte
前阵子被问及一个在C中如何调用C++函数的问题,当时简单回答是将函数用extern "C
把C#编译成或者Axtive控件,再由C调用 !比如使用C
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M