日期:2014-05-16  浏览次数:20589 次

extern "C" 在linux上的问题
#ifdef   _cplusplus  
extern   "C "{  
#endif  
int   strlen(char*   string)  
#ifdef   _cplusplus  
}  
#endif

是不是_cplusplus   在linux   G++里面没有定义阿

------解决方案--------------------
// #ifdef _cplusplus
#ifdef __cplusplus

除非你自己定义了_cplusplus