"Return type of function main must be int"

22 Jan 2011

Hello

any idea why I get this message. I cannot se e any obvious errors in the code, which I am trying to port from another platform.

"Return type of function "main" must be "int"" in file "/main.cpp"

The program is not running - I need to fix this forst before moving forward.

Thanks

22 Jan 2011

Try int main (void) {..}

22 Jan 2011

yes - looks like its fixed it! Thank you