Th struct SamplesPacket is a type declaration. It is not defined in memory and thus samplesCount can't be declared static. Transform it to true cpp static variable class as this is c++ source.
Th struct SamplesPacket is a type declaration. It is not defined in memory and thus samplesCount can't be declared static. Transform it to true cpp static variable class as this is c++ source.