VS2013 bizarre error report: xxx is not a member of XXX

A weird error

this error is hot to the eye. In theory, this kind of error VS should give the error prompt directly, but there is no error prompt. This kind of error will only occur when I click on the compilation. Then I see that there is nothing wrong with the declaration and definition syntax of my member function, but I just can"t pass the compilation. I wonder if it"s a character encoding problem?


the problem may be that the compilation unit you implemented did not see the full declaration of Mylog, please check whether the header file is included. Because you do not provide enough context, you need to make corrections according to your actual situation.


the mistake reported has been obvious

getLogs is not a member of Mylog

means getLogs should not belong to

in the class Mylog .
Menu