extern "C" 引起的 error C2059【转】
在扩展名为.C的源文件中使用”extern "C"“会引发错误 C2059,错误提示为:
error C2059:syntax error:'string'
原因是在C语言中,无法辨认字符串"C",
解决办法是移除 extern "C",或者改成
#ifdef __cplusplus
extern "C"
#endif
具体参见:http://support.microsoft.com/?scid=kb%3Ben-us%3B133070&x=4&y=16
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)