用C++编译器编译C文件
由 hubdog 于 星期三, 2010-01-13 17:50 发表
注意在C的头文件中要加上下面的宏定义
#ifdef __cplusplus
extern "C" {
#endif
C函数定义
#ifdef __cplusplus
}
#endif
或者
extern "C" {
#include "aaa.h"
...
}