I have the same error when running the code on MACOS Big Sur.
-------------- Build: Debug in C (compiler: GNU GCC Compiler)---------------
gcc -Wall -g -c /Users/Caroline/Desktop/C:C++/C/main.c -o obj/Debug/main.o
g++ -o bin/Debug/C obj/Debug/main.o
Output file is bin/Debug/C with size 48.49 KB
Process terminated with status 0 (0 minute(s), 1 second(s))
0 error(s), 0 warning(s) (0 minute(s), 1 second(s))
-------------- Run: Debug in C (compiler: GNU GCC Compiler)---------------
Checking for existence: /Users/Caroline/Desktop/C:C++/C/bin/Debug/C
Executing: osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script quoted form of "/Applications/CodeBlocks.app/Contents/MacOS/cb_console_runner DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. /Users/Caroline/Desktop/C:C++/C/bin/Debug/C "' -e 'end tell' (in /Users/Caroline/Desktop/C:C++/C/.)
Process terminated with status 0 (0 minute(s), 0 second(s))