As I wrote before, g++ is used as frontend to the linker and C::B always splits the build process in compiling and linking, so it can not work without it.
If you don't do anything but c-compiling and you absolutely don't want to install g++, you can use gcc for linking stage.
gcc can link c-files, but not c++-files, g++ can link both of them.