RAD Studio
ContentsIndex
PreviousUpNext
W8099: Static main is not treated as an entry point (C++)

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.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!