extern C can not be used at class level?

前端 未结 5 1219
故里飘歌
故里飘歌 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

    Ummm... extern "C" forces C-style linkage. It cannot be used with classes AFAIK.

提交回复
热议问题