P.S. Technically, these are (simple) C++ programs, and I use g++ to compile them, but that's irrelevant because g++ is just gcc with C++ options. Anyway, that's the reason for the .cpp extension in the example. Regards, Cormac. > final.cpp: In function `int main(...)': > final.cpp:98: `return' with no value, in function returning non-void