c和c++语言混合编译时候,需要修改c语言头文件
#ifdef __cplusplus extern "C" { #endif /******/ #ifdef __cplusplus } #endif