Since this is C++, it should be in the C++ forum, otherwise, if it's supposed to be C, your source code should end with .c not .cpp.