The error means you're missing the
main()
function, such as when you're compiling an empty file. It has nothing to do with what headers you include.