How to fix identifier error?

You can’t declare a member variable as auto, unless you also declare it static const, but that would prevent you from changing its value.

In MainComponent.h, you should use juce::Time instead of auto.

I hope this helps!

I replaces auto with juce::Time, but still same errors.

In MainComponent.h:

  • you haven’t declared checkTimeFunction, which is defined in MainComponent.cpp

In MainComponent.cpp:

  • there is a typo in the definition of MainComponent::checkTimeFunction, you wrote MainComonent instead of MainComponent

Fixing these issues should help you move forward.

Have to declare the member function in .h?

I fixed them and so much confused about this