Error I can´t figure out

Hello! I am trying to compile my first proyect but there seems to be an error in PluginEditor.cpp : (class “juce::AudioProcessor” has no member “menuChoice”). “menuChoice” is an int being defined in PluginEditor.h in public. Please help, thanks.

BTW, the code is not finished yet, I am trying to figure some things out haha.

menuChoice is a member of SaturationMonsterAudioProcessor, which derives from juce::AudioProcessor. The processor member in juce::AudioProcessorEditor is of type juce::AudioProcessor&. You can’t access members of a derived class through a reference to its base class. Maybe you meant audioProcessor.menuChoice.

Oh, thanks kamedin :grin:! I understand now my mistake.