简体   繁体   中英

Error Message 'class::function' : illegal call of non-static member function

i was trying to call a static function of class using scope resolution operator, the way to access static function but still generating error. what are the possibilities.

错误消息说明了一切:您正在调用一个非静态成员函数,将其视为静态。

The obvious possibility is that your function is not static , as the error message clearly says. There are no meaningful way to guess at any other possibilities with the information you provided.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM