So I’m following the tutorial in ‘Developing Virtual Synthesizers with VCV Rack’ Book which is close to the manual tutorial. and I’ve gotten as far as using the helper.py file to createplugin and then createmodule. Upon using make to compile the code I receive undefined reference to `pluginInstance’ I’m really at a lost as I don’t see the problem with the code.
I’ve built Rack 2.2.2 and have compiled sample code from the book here
I know its with line 32 I just don’t see whats wrong. Or if I’m missing out on some knowledge here. I’ll keep digging but bassface to hair pull about to happen.
#pragma once
#include <rack.hpp>
using namespace rack;
// Declare the Plugin, defined in plugin.cpp
extern Plugin* pluginInstance;
// Declare each Model, defined in each module source file
// extern Model* modelMyModule;
It would also be (slightly?) interesting to see the plugin.cpp. But I guess since it links without error that @robert.kock has correctly spotted the issue.
#pragma once
#include <rack.hpp>
using namespace rack;
// Declare the Plugin, defined in plugin.cpp
extern Plugin* pluginInstance;
// Declare each Model, defined in each module source file
extern Model* modelMyModule;
still no compile…i see that now leaving the comment derp.
I know what your issue is , but need to be at a computer to help If no one else has done within a couple of hours I will send you the solution. You need a proper plugin.cpp and rename your current plugin.cpp to myModule.cpp
look at some plugin that is known to work. The Fundamentals are good, although slightly complex because there are so many modules in there. But look what’s in the plugin.cpp for that one, it should be typical.
I know what your issue is , but need to be at a computer to help If no one else has done within a couple of hours I will send you the solution. You need a proper plugin.cpp and rename your current plugin.cpp to myModule.cpp
ok I renamed plugin.cpp to myModule.cpp and added this file