????1 ??????????extern?????????????????????????????????????????????????校??????????????????????????????????????????濉�????extern????????????????????
????????extern????????????????????????"C"????????????: extern "C" void fun(int a?? int b);???????????????fun??????????????C??????????????????????????C++???C++???????????????????????fun??????????????????????fun@aBc_int_int#%$???????????????????????"???"??(???????????????????????)????????????????C++??????????????????????????????????????????????????????????????????????????????????!
???????????extern????"C"????????伪????????????????????: extern int g_Int; ???????????????????????????????梅?围????????????????????????????????????????????????????????????????????!????B???(?????)??????????(?????)A?卸?????????????????????????A???????????????????危????B?????????煤?????????????????????????????????????A???????????????????????
????2 ????extern ????
?????????????????????????椋篶har a[6];
??????????????????????????????????????extern char *a??
???????????????????
?????????????
????1)???????????????????????????????????????????????T????????????????T?????椤xtern char *a?????????????????????????????椋�???????????宀�????????????????????????y????????extern char a[ ]??
????2)????????????锟�????a[] = "abcd"??????????a=0x61626364 (abcd??ASCII???)??*a??????????
???????a??????0x61626364????????澹�??????????????
????3)?????????????????extern????????????????????????????校??????????????????
????4)??extern????????????谐?????????????????????*.c????????????????????????????????????????????????*.h?胁???extern????????
????3 ?????????????extern ???????
?????????????????????????????????????梅??????????????????extern?????????????????????????????????????泄????校??????????????????????????????????????????????????谓????
?????????????
?????????????????????????????????????????????????????????????????xxx_pub.h???????????????????????梅?include?????????????extern???????????????????
????????????妫�??extern?????????????????????????????
????4 ????extern “C”
??????C++?????????C?????????????????????????????obj????械?C???????澹�?????????????????????????谓????????????
?????????????
????C++???????????????????????????????????????????????????????????屑????????????C??????????????????????????????????????????C?????????extern “C”??????????????????????????????????????????????????????????屑浜�??????
??????????????????写????
//??.h????????
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */


//.h???????????
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */