extern C can not be used at class level?

前端 未结 5 1223
故里飘歌
故里飘歌 2020-12-06 02:22

Just want to confirm in Windows environment, VSTS 2008 + C++ project, we could only apply extern C to function level, not be able to apply to class level (so that all member

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-06 02:40

    I'm afraid not. But if you want to pass an object of C++ to C functions, you may refer to this link: http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html#faq-32.8

提交回复
热议问题