# Issue with custom class using ProcessorChain of DSP module

**URL:** <https://forum.juce.com/t/issue-with-custom-class-using-processorchain-of-dsp-module/37052>\
**Category:** Audio Plugins\
**Created:** [January 10, 2020, 10:28am UTC](https://forum.juce.com/t/issue-with-custom-class-using-processorchain-of-dsp-module/37052 "2020-01-10T10:28:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![frodojedi](https://avatars.discourse-cdn.com/v4/letter/f/a5b964/32.png) [@frodojedi](https://forum.juce.com/u/frodojedi)\
**Post date:** [January 10, 2020, 10:28am UTC](https://forum.juce.com/t/issue-with-custom-class-using-processorchain-of-dsp-module/37052/1 "2020-01-10T10:28:20Z")

</div>

Hi all,  
I want to create a custom class using the DSP module, where the processing is done through a ProcessorChain consisting of the processor of the class plus a gain.

```
juce::dsp::ProcessorChain<MyClass<Type>, juce::dsp::Gain<Type>> myClassProcessorChain;

```

This instruction gives the error

```
Field has incomplete type 'juce::dsp::ProcessorChain<MyClass<float>, juce::dsp::Gain<float> >' (aka 'ChainBase<true, MyClass<float>, juce::dsp::Gain<float> >')

```

I can’t figure out what I am doing wrong. I have created the class inheriting from the ` dsp::ProcessorBase`

```
template <typename Type>
class MyClass : public dsp::ProcessorBase
{
public:
    MyClass()
```

---

<div class="post-metadata">

**Author:** ![nicolezim](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nicolezim/32/8210_2.png) [@nicolezim](https://forum.juce.com/u/nicolezim)\
**Post date:** [May 25, 2020, 3:18pm UTC](https://forum.juce.com/t/issue-with-custom-class-using-processorchain-of-dsp-module/37052/2 "2020-05-25T15:18:21Z")

</div>

Im kinda stuck on something similar… Did you ever find a solution to this?

---

<div class="post-metadata">

**Author:** ![PluginPenguin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/pluginpenguin/32/10203_2.png) [@PluginPenguin](https://forum.juce.com/u/PluginPenguin)\
**Post date:** [May 25, 2020, 4:19pm UTC](https://forum.juce.com/t/issue-with-custom-class-using-processorchain-of-dsp-module/37052/3 "2020-05-25T16:19:49Z")

</div>

This is most likely based on some wrong template syntax or code structure so that the compiler fails to parse all the templated stuff.

As this could be nearly anything, it would be best if you showed us the relevant part of your code (your own class definition, the declaration of the ProcessorChain and maybe some outline of the whole project structure, e.g. where which piece of code gets declared)
