expected unqualified-id before ‘.’ token

The class method shown


Indicates that CLog is a class, the syntax for accessing members without an instance variable is not the . operator, but the scope resolution operator ::.


Clog::info(AV_LTPROF, additionalInfo);

Or with an explicit this;

this->info(AV_LTPROF, additionalInfo);

Or with the implicit this;

info(AV_LTPROF, additionalInfo);

The info() method is not shown, so it is unclear if it is static or not.

Browse More Popular Posts

Leave a Comment