I’m on my second day with my owl and now I want to go into uncharted territory and start writing patches in C++.
First of all I need to get compiling.
I got it working with gen-patches no problem, and already got some good sound out of the module.
If I just copy the text of a .hpp file downloaded from the patch library and try to save it as a new .hpp-file, it wont compile. Someone else here on the forum posted a while back of the same problem, but then realized that he hadn’t done the “preprocessor-thing”.
And here I must admit, that I kinda know of preprocessors, but yes, I don’t really know what it is.
Can anyone explain to me how to use a preprocessor on my .hpp-files, so i can start compiling my own files?
Here is the online compiler error:
Patch Compilation Failed
StdoutStderr
/tmp/owl/owl-build-NsOkun/registerpatch.cpp: In function 'void setup(ProgramVector*)':
/tmp/owl/owl-build-NsOkun/registerpatch.cpp:1:16: error: 'gaintest' does not name a type
REGISTER_PATCH(gaintest, "untitled-tetestest", 2, 2); ^ ./Source/PatchProgram.cpp:45:73: note: in
definition of macro 'REGISTER_PATCH' #define REGISTER_PATCH(T, STR, IN, OUT)
registerPatch(STR, IN, OUT, new T) ^ make[1]: *** [/tmp/owl/owl-build-NsOkun/PatchProgram.o]
Error 1 make: *** [patch] Error 2 ERROR: Patch build failed.