我不得不将一些C/C++代码转换到 Java。 我的C++极其隐蔽。
在<代码>h文档中,我有:
#ifdef __cplusplus
extern "C" {
#endif
/* tons of declarations */
#ifdef __cplusplus
} /* extern C */
#endif
如何使用<代码>extern“C”? 它意味着什么? 它是否告诉汇编者,相应的法典应当被解释为纯C,而不是C++?
http://www.ohchr.org。
Thanks for the answers so far. The history of the code I have to convert is that it seems like a part was written in C first, then the rest was written in C++. So my header file seems to correspond to old C code.
I ll 将这一代码改为的公开最终类别
,其中采用静态方法和属性。 不得凌驾于一切。