Hi, I'd like to use https://github.com/adamstark/Gist in a Bela project but I'm having trouble getting it to build.
Minimal example:
#include <Bela.h>
#include "Gist.h"
bool setup(BelaContext context, void userData)
{
int frameSize = 512;
Gist<float> gist (frameSize, context->audioSampleRate);
return true;
}
etc...
...upon building produces the linker error:
/root/Bela/projects/gist/build/render.o: In function setup':/root/Bela/projects/gist/render.cpp:(.text+0x20): undefined reference to
Gist::Gist(int, int, WindowType)'/root/Bela/projects/gist/render.cpp.text+0x28): undefined reference to `Gist::~Gist()'
It's not clear to me why this is, because at the end of Gist.cpp we have the explicit instantiation:
template class Gist<float>;
Any advice would be greatly appreciated.
Thank you,
-Elbow