在c与c++混合编译过程中出现error: template specialization with C linkage error: template with C linkage 问题,
经查证发现为extern “C” 的使用问题。
#ifdef __cplusplus
extern “C” {
#endif
未增加对应
#ifdef __cplusplus
}
#endif
导致此问题出现。
error: template with C linkage 问题
最新推荐文章于 2023-07-07 20:06:26 发布