Dsp is not in namespace JUCE error. NOT MISSING THE MODULE THOUGH!

class HRTFProcessor : public ProcessorBase


  float getElevation();
  float getAzimuth();
  juce::String getFileName();

  void setElevation(float elevation);
  void setAzimuth(float azimuth);
  void setFileName(juce::String fileName);

  void reset() override;
  void processBlock(juce::AudioBuffer<float>& buffer, juce::MidiBuffer&) override;
  void processBlock(juce::AudioBuffer<double>& buffer, juce::MidiBuffer&) override;
  void prepareToPlay(double sampleRate, int samplesPerBlock) override;
  const juce::String getName() const  override;
  //  void getSOFAdata(std::vector<double> coordinates);
  std::vector<double> extractCoordinates(juce::String fileName);
    //  std::string getSOFAinfo();
  juce::dsp::Convolution convolver;

  static float staticElevation;
  static float staticAzimuth;  

In this code, where I declare: juce::dsp::Convolution convolver;

I get the compiler error: dsp is not a member of juce.
Normally, this is a trivial issue, But I have included the correct Module, and this error has only started since adding the ‘Recommended compiler flags’ option in the Projucer.
Any Ideas on the cause and how to fix would be greatly appreciated.
Many thanks

And do you include it?

#include <juce_dsp/juce_dsp.h>

No I hadn’t, thank you for that, hadn’t received errors for that before but that has solved it, many thanks Daniel.


It could have been included indirectly before via JuceHeader.h…

1 Like