帮忙看看这个编译错误

aibo54 aibo54 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Compiler Error C2724
'identifier' : 'static' should not be used on member functions defined at file scope

A static member function was defined at file scope. Static member functions should be declared with external linkage.

This is a warning when Microsoft extensions are used (/Ze) and is an error when Microsoft extensions are disabled (/Za).

The following is an example of this error:

class C
{
static void func();
};

static void C::func(){}; // error
...全文
评论 12
收藏 已收藏
分享
返回顶部
aibo54
VC/MFC 16,550 成员 421,606 内容