/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp: In function ‘int apu_enqueue(apudata_t*)’:
/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp:176:15: error: ‘printf’ was not declared in this scope
176 | /*log_*/printf("apu: queue overflow\n"); //f0
| ^~~~~~
/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp:60:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio ’?
59 | #include "nes_apu.h"
+++ |+#include <cstdio>
60 | //#include "nes6502.h" //f0
/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp: In function ‘apudata_t* apu_dequeue()’:
/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp:190:14: error: ‘printf’ was not declared in this scope
190 | /*log_*/printf("apu: queue empty\n"); //f0
| ^~~~~~
/home/giano/.local/src/f0plugins/source/Nes2/nes_apu.cpp:190:14: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
make[2]: *** [source/CMakeFiles/nes_apu.dir/build.make:82: source/CMakeFiles/nes_apu.dir/Nes2/nes_apu.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:357: source/CMakeFiles/nes_apu.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Trivially solved by adding #include <cstdio> to source/Nes2/nes_apu.cpp as the compiler suggests :)
Build errors while building on Linux:
Trivially solved by adding
#include <cstdio>
to source/Nes2/nes_apu.cpp as the compiler suggests :)