Dear All,
By standard i use Visual Code for porgramming on Linux Machines, but want to try out Code::Blocks.
Well i have the same issue with the build in example under Debian 11.
I checked the log message and did the same compiling steps by hand via xterm... and it works like it should.

So it seems that the origin of this issue depends on Code::Blocks.
When i checked the directorys of the project, i recognized that there is no main.o file generated in the <obj\Debug> directory.
Maybe the settings in the compiler options could be the reason ?!
Regards