今天要调用一个C函数库,就用了下面的可是来处理C函数
#ifdef __cplusplus
extern "c"
{
#endif
//函数声明
#ifdef __cplusplus
}
#endif
结果报错:
language string '"c"' not recognized
extern "c" {
^
找了半天也不知道是什么错,结果那别人的代码一对,才发现C要大写
#ifdef __cplusplus
extern "C"
{
#endif
//函数声明
#ifdef __cplusplus
}
#endif