Noob question: debugging redwood audio tutorial


#1

Error    4    error C2065: 'StereoWidthCtrlProcessor' : undeclared identifier    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    30    1    StereoWidthCtrl
Error    5    error C2065: 'ownerFilter' : undeclared identifier    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    30    1    StereoWidthCtrl
Error    6    error C2448: 'StereoWidthCtrlAudioProcessorEditor::{ctor}' : function-style initializer appears to be a function definition    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    31    1    StereoWidthCtrl
Error    7    error C2143: syntax error : missing ';' before ':'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    31    1    StereoWidthCtrl
Error    8    error C3861: 'setSize': identifier not found    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    37    1    StereoWidthCtrl
Error    9    error C2143: syntax error : missing '}' before ';'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    37    1    StereoWidthCtrl
Error    10    error C2248: 'juce::AudioProcessorEditor::AudioProcessorEditor' : cannot access private member declared in class 'juce::AudioProcessorEditor'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    37    1    StereoWidthCtrl
Error    11    error C4430: missing type specifier - int assumed. Note: C++ does not support default-int    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    41    1    StereoWidthCtrl
Error    12    error C2059: syntax error : '}'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    43    1    StereoWidthCtrl
Error    13    error C2143: syntax error : missing ';' before '}'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    43    1    StereoWidthCtrl
Error    14    error C2143: syntax error : missing ';' before '{'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    46    1    StereoWidthCtrl
Error    15    error C2447: '{' : missing function header (old-style formal list?)    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    46    1    StereoWidthCtrl
    16    IntelliSense: identifier "StereoWidthCtrlProcessor" is undefined    c:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    30    75    StereoWidthCtrl
    17    IntelliSense: "juce::AudioProcessorEditor::AudioProcessorEditor(const juce::AudioProcessorEditor &)" (declared at line 88 of "C:/Users/seanw/Dropbox/programming shit/StereoWidthCtrl/JuceLibraryCode/modules/juce_audio_plugin_client/../../../../JUCE-WINDOWS/modules/juce_audio_plugin_client/../juce_audio_processors/processors/juce_AudioProcessorEditor.h") is inaccessible    c:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.cpp    31    27    StereoWidthCtrl
Error    1    error C2061: syntax error : identifier 'StereoWidthCtrlProcessor' (..\..\Source\PluginProcessor.cpp)    c:\users\seanw\dropbox\programming shit\stereowidthctrl\source\PluginEditor.h    43    1    StereoWidthCtrl
Error    3    error C2061: syntax error : identifier 'StereoWidthCtrlProcessor' (..\..\Source\PluginEditor.cpp)    c:\users\seanw\dropbox\programming shit\stereowidthctrl\source\PluginEditor.h    43    1    StereoWidthCtrl
    18    IntelliSense: identifier "StereoWidthCtrlProcessor" is undefined    c:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginEditor.h    43    42    StereoWidthCtrl
Error    2    error C2664: 'StereoWidthCtrlAudioProcessorEditor::StereoWidthCtrlAudioProcessorEditor(const StereoWidthCtrlAudioProcessorEditor &)' : cannot convert argument 1 from 'StereoWidthCtrlAudioProcessor' to 'const StereoWidthCtrlAudioProcessorEditor &'    C:\Users\seanw\Dropbox\programming shit\StereoWidthCtrl\Source\PluginProcessor.cpp    168    1    StereoWidthCtrl

I've followed the redwoodaudio tutorial and i keep getting these errors. Anyone know what's up?

http://redwoodaudio.net/Tutorials/juce_for_vst_development__intro3.html

Thanks!

plugineditor.cpp:


/*

This is an automatically generated GUI class created by the Introjucer!

Be careful when adding custom code to these files, as only the code within
the “//[xyz]” and “//[/xyz]” sections will be retained when the file is loaded
and re-saved.

Created with Introjucer version: 3.1.0


The Introjucer is part of the JUCE library - "Jules’ Utility Class Extensions"
Copyright 2004-13 by Raw Material Software Ltd.

==============================================================================
*/

//[Headers] You can add your own extra header files here…
//[/Headers]

#include “PluginEditor.h”

//[MiscUserDefs] You can add your own user definitions and misc code here…
//[/MiscUserDefs]

//==============================================================================
StereoWidthCtrlAudioProcessorEditor::StereoWidthCtrlAudioProcessorEditor (StereoWidthCtrlProcessor& ownerFilter)
: AudioProcessorEditor(ownerFilter)
{

//[UserPreSize]
//[/UserPreSize]

setSize (600, 400);

//[Constructor] You can add your own custom stuff here..
startTimer(200);
//[/Constructor]

}

StereoWidthCtrlAudioProcessorEditor::~StereoWidthCtrlAudioProcessorEditor()
{
//[Destructor_pre]. You can add your own custom destruction code here…
//[/Destructor_pre]

//[Destructor]. You can add your own custom destruction code here..
//[/Destructor]

}

//==============================================================================
void StereoWidthCtrlAudioProcessorEditor::paint (Graphics& g)
{
//[UserPrePaint] Add your own custom painting code here…
//[/UserPrePaint]

g.fillAll (Colours::white);

//[UserPaint] Add your own custom painting code here..
//[/UserPaint]

}

void StereoWidthCtrlAudioProcessorEditor::resized()
{
//[UserPreResize] Add your own custom resize code here…
//[/UserPreResize]

//[UserResized] Add your own custom resize handling here..
//[/UserResized]

}

//[MiscUserCode] You can add your own definitions of your custom methods or any other code here…
void StereoWidthCtrlAudioProcessorEditor::timerCallback()
{
StereoWidthCtrlAudioProcessor* ourProcessor = getProcessor();
//exchange any data you want between UI elements and the Plugin “ourProcessor”
}
//[/MiscUserCode]

//==============================================================================
#if 0
/* – Introjucer information section –

This is where the Introjucer stores the metadata that describe this GUI layout, so
make changes in here at your peril!

BEGIN_JUCER_METADATA

<JUCER_COMPONENT documentType=“Component” className=“StereoWidthCtrlAudioProcessorEditor"
componentName=”" parentClasses="public AudioProcessorEditor, public Timer"
constructorParams="StereoWidthCtrlProcessor&amp; ownerFilter"
variableInitialisers=“AudioProcessorEditor(ownerFilter)” snapPixels="8"
snapActive=“1” snapShown=“1” overlayOpacity=“0.330” fixedSize="0"
initialWidth=“600” initialHeight=“400”>
<BACKGROUND backgroundColour=“ffffffff”/>
</JUCER_COMPONENT>

END_JUCER_METADATA
*/
#endif

//[EndFile] You can add extra defines here…
//[/EndFile]


plugineditor.h


/*

This is an automatically generated GUI class created by the Introjucer!

Be careful when adding custom code to these files, as only the code within
the “//[xyz]” and “//[/xyz]” sections will be retained when the file is loaded
and re-saved.

Created with Introjucer version: 3.1.0


The Introjucer is part of the JUCE library - "Jules’ Utility Class Extensions"
Copyright 2004-13 by Raw Material Software Ltd.

==============================================================================
*/

#ifndef JUCE_HEADER_F8EB772295D855C6
#define JUCE_HEADER_F8EB772295D855C6

//[Headers] – You can add your own extra header files here –
#include “JuceHeader.h”
#include “PluginProcessor.h”
//[/Headers]

//==============================================================================
/**
//[Comments]
An auto-generated component, created by the Introjucer.

Describe your class and how it works here!
                                                                //[/Comments]

*/
class StereoWidthCtrlAudioProcessorEditor : public AudioProcessorEditor,
public Timer
{
public:
//==============================================================================
StereoWidthCtrlAudioProcessorEditor (StereoWidthCtrlProcessor& ownerFilter);
~StereoWidthCtrlAudioProcessorEditor();

//==============================================================================
//[UserMethods]     -- You can add your own custom methods in this section.
void timerCallback();

StereoWidthCtrlAudioProcessor* getProcessor() const
{
    return static_cast &lt;StereoWidthCtrlAudioProcessor*&gt;(getAudioProcessor());
}
//[/UserMethods]

void paint (Graphics&amp; g);
void resized();

private:
//[UserVariables] – You can add your own custom variables in this section.
//[/UserVariables]

//==============================================================================

//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StereoWidthCtrlAudioProcessorEditor)

};

//[EndFile] You can add extra defines here…
//[/EndFile]

#endif // JUCE_HEADER_F8EB772295D855C6

 


#2

You have syntax errors in your processor code. Check for missing semi colons. Remember you need one at the end of a class declaration, that may be missing.