(working on the same project as Fedde ) giuliomoro The line '#include Heavy_bela.h' file was (accidentally) added to the render.cpp file during the merging process with another project. So that specific error is as of now irrelevant for this topic. (so I'm not sure if heavy and libpd get mixed up here, at least, not anymore) But even when just trying to load&build from a folder containing only the original project (including the original render.cpp file), which was previously working on an older bela img& IDE version, the same errors occur:
In file render.cpp: use of undeclared identifier 'libpd_get_sys_soundin'; did you mean 'get_sys_soundin'? column: 11, line: 263
In file render.cpp: use of undeclared identifier 'libpd_get_sys_soundout'; did you mean 'get_sys_soundout'? column: 12, line: 264
In file render.cpp: [warning] enumeration value 'kmmSystem' not handled in switch [-Wswitch] column: 10, line: 322
/root/Bela/projects/hetEi_test3/render.cpp:263:11: error: use of undeclared identifier 'libpd_get_sys_soundin'; did you mean 'get_sys_soundin'?
gInBuf = libpd_get_sys_soundin();
^~~~~~~~~~~~~~~~~~~~~
get_sys_soundin
/usr/local/include/libpd/s_stuff.h:378:18: note: 'get_sys_soundin' declared here
extern t_sample* get_sys_soundin(void ) ;
^
/root/Bela/projects/hetEi_test3/render.cpp:264:12: error: use of undeclared identifier 'libpd_get_sys_soundout'; did you mean 'get_sys_soundout'?
gOutBuf = libpd_get_sys_soundout();
^~~~~~~~~~~~~~~~~~~~~~
get_sys_soundout
/usr/local/include/libpd/s_stuff.h:377:18: note: 'get_sys_soundout' declared here
extern t_sample* get_sys_soundout(void ) ;
^
/root/Bela/projects/hetEi_test3/render.cpp:322:10: warning: enumeration value 'kmmSystem' not handled in switch [-Wswitch]
switch(message.getType()){
^
1 warning and 2 errors generated.
make: *** [/root/Bela/projects/hetEi_test3/build/render.o] Error 1
"In file render.cpp: use of undeclared identifier 'libpd_get_sys_soundin'; did you mean 'get_sys_soundin'? column: 11, line: 263 :"
when trying to remove the “libpd_” prefix, as the warning suggests, the following errors remain:
(&there is also an extra error showing up)
[warning] enumeration value 'kmmSystem' not handled in switch [-Wswitch] column: 10, line: 321
[warning] unused variable 'gFirstScopeChannel' [-Wunused-const-variable] column: 27, line: 185
/root/Bela/projects/hetEi_test3/render.cpp:321:10: warning: enumeration value 'kmmSystem' not handled in switch [-Wswitch]
switch(message.getType()){
^
/root/Bela/projects/hetEi_test3/render.cpp:185:27: warning: unused variable 'gFirstScopeChannel' [-Wunused-const-variable]
static const unsigned int gFirstScopeChannel = 26;
^
2 warnings generated.
/root/Bela/projects/hetEi_test3/build/render.o: In function `setup':
/root/Bela/projects/hetEi_test3/build/render.bc:(.text+0xc0c): undefined reference to `get_sys_soundin()'
/root/Bela/projects/hetEi_test3/build/render.bc:(.text+0xc14): undefined reference to `get_sys_soundout()'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [/root/Bela/projects/hetEi_test3/hetEi_test3] Error 1
make: *** [/root/Bela/projects/hetEi_test3/hetEi_test3] Error 2