The entry function is the function which is called by the runtime to start the actual program after runtime initialization has finished. For /SUBSYSTEM:Console the common signatures are int main();
int main(int, char**);
See the standard (or Wikipedia if a standard is not at hand) for a complete list of what is allowed here, although MSVC allows a few non-standard extensions.
For /SUBSYSTEM:Windows the entry function must be int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
Although it is possible to change the name of the entry function in MSVC, the signature still must be as expected.
Okay your telling me about /SUBSYSTEM:Console and /SUBSYSTEM:Windows.
Are these what you are reffering to?
If so I have another question.
I created a empty project both times. So I dont see how using the
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int);
or using the
int main()
would have an effect.
I did use int main() {} both times. And on seperate projects using FLTK I used int main {} as the starting point on both empty win32 application and an empty win32 console application. However all I did was write the code in main.cpp. I didn't change any options aside from adding the neccessary links to the FLTK libs.
Thanks for the explanation I appreciate it.