Thanks, Eli, running mingw-get install g++-bin solved the c++ compilation issue. And thanks, Earnie, including <stdio.h> resolved the warning in helloworld.

--
This message is sarcasm free.