In all example.cpp files, main is defined as void main.
Many compilers (I use gcc 4.0.2) fail to compile the
code since main should have return type int.
Replacing "void main()" with "int main()" in all the
cpp files solves the problem. So please do so.