That's true Moonbat, but the function returns an integer (int). The void is in between the ( and ) to indicate that it takes no parameters. Without the full errors, there's not really much I can say, apart from I don't think you've linked in all the necessary libraries for Windows, or perhaps you are trying to compile this code as a C++ project in Dev-Cpp when in fact it is C code. I thought they were interchangeable, but it's something to try.