Function definition for 'sliderValueChanged' not found

Hello all, super noob here and I’m following along with this tutorial:

This is where I’m stuck Visual Basic is telling me the sliderValueChanged function doesn’t exist:

void sliderValueChanged(juce::Slider* slider) override;

Furthermore, I run into more issues when I try to implement it in PluginEditor.cpp:

void GainAudioProcessorEditor::sliderValueChanged (Slider *slider)

I get the error that the ‘declaration is incompatible’.

Any ideas on what I’m doing wrong here?

You didn’t add the juce namespace in your implementation. It should be

void GainAudioProcessorEditor::sliderValueChanged (juce::Slider* slider) {}
1 Like

Thanks a lot! That fixed the issue.

1 Like