expected unqualified-id before ‘.’ token

The class method shown

CLog::featureAvailable(/*...*/)

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

Hence;

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.

Leave a Comment