W8099 Static main is not treated as an entry point (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

The main function has been created as static, and as such cannot be used as a valid entry point.

Consider:

static void main(int argc, char**argv)
{
}

The above is valid C syntax, but cannot actually be called as the startup routine since it has been declared static.