# No matching constructor for initialization of

**URL:** <https://iplug2.discourse.group/t/no-matching-constructor-for-initialization-of/709>\
**Category:** macOS\
**Created:** [22 September 2022 23:52 UTC](https://iplug2.discourse.group/t/no-matching-constructor-for-initialization-of/709 "2022-09-22T23:52:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elf](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/elf/32/286_2.png) [@Elf](https://iplug2.discourse.group/u/Elf)\
**Post date:** [22 September 2022 23:52 UTC](https://iplug2.discourse.group/t/no-matching-constructor-for-initialization-of/709/1 "2022-09-22T23:52:33Z")

</div>

Sorry that this is not 100% related to iPlug2, I’m trying to build [https://github.com/sdatkinson/iPlug2/tree/main/Examples/NAM](https://github.com/sdatkinson/iPlug2/tree/main/Examples/NAM) forked from iPlug2, after many days of trying to solve this issue and no luck I’m hoping to maybe get some leads on what to try next, Thanks!

In Xcode get this error while trying to build VST3 or APP Targets / macOS 12.4 / Apple M1 / Xcode 13.4.1

No matching constructor for initialization of ‘wavenet::WaveNet’

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/\_\_memory/unique\_ptr.h:728:32: error: no matching constructor for initialization of ‘wavenet::WaveNet’  
return unique\_ptr\<\_Tp\>(new \_Tp(\_VSTD::forward\<\_Args\>(\_\_args)…));  
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
/Users/user/Dev/iPlug2/Examples/NAM/get\_dsp.cpp:83:17: note: in instantiation of function template specialization ‘std::make\_unique\<wavenet::WaveNet, std::vectorwavenet::LayerArrayParams &, const float &, const bool &, nlohmann::basic\_json\<\>, std::vector &\>’ requested here  
return std::make\_uniquewavenet::WaveNet(  
^  
In file included from /Users/user/Dev/iPlug2/Examples/NAM/get\_dsp.cpp:7:  
/Users/user/Dev/iPlug2/Examples/NAM/wavenet.h:202:5: note: candidate constructor not viable: expects an lvalue for 4th argument  
WaveNet(  
^  
/Users/user/Dev/iPlug2/Examples/NAM/wavenet.h:200:9: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided  
class WaveNet : public DSP {  
^  
/Users/user/Dev/iPlug2/Examples/NAM/wavenet.h:200:9: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 5 were provided  
5 warnings and 1 error generated.

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [23 September 2022 08:59 UTC](https://iplug2.discourse.group/t/no-matching-constructor-for-initialization-of/709/2 "2022-09-23T08:59:17Z")

</div>

Did you ask the authors on GitHub?

---

<div class="post-metadata">

**Author:** ![Elf](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/elf/32/286_2.png) [@Elf](https://iplug2.discourse.group/u/Elf)\
**Post date:** [23 September 2022 14:36 UTC](https://iplug2.discourse.group/t/no-matching-constructor-for-initialization-of/709/3 "2022-09-23T14:36:39Z")

</div>

I did a couple of days ago, no answer yet.
