"You guys have used DarkGDK before right? You don't declare Winmain(), Main(), t_main() "
C++ does not care about DarkGDK.
You either define main (the standard way) or an operating system specific way (e.g WinMain ) There are no other options.
Quote: "You declare, void DarkDGK(){ Which Normally acts as your main function."
No.You IMPLEMENT the already declared voidDarkGDK() which is called from the main entry point (WinMain)
c99 standard :
Quote: "5.1.2.2.1 Program startup: (1) The function called at program startup is named main."
If you open DarkGDK2.cpp file , you can clearly see that there is the definition of
int APIENTRY WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) which is the main entry point of a DarkGDK app. Inside the body of this function you see the WinMain calls the void DarkGDK() which at this point has only a definition (See few lines above the prototype definition of this function) BUT NO IMPLEMENTATION ! The GDK user is responsible to implement this function in his main cpp. (Eg :
void DarkGDK()
{
Print("Whatever...");
}
Actually this is an ugly C-is way of forcing the user to define a body for a predefined function.(Otherwise at linking time you will get a linker error. Saying error DarkGDK has no definition.Or something similar)
So all in all : Your error message states that the application you're building has no main() (standard) or a WInMain (windows) entry point.
[href=forum.thegamecreators.com/?m=forum_view&t=191567&b=5]Spark Particle engine[/href]
[href=forum.thegamecreators.com/?m=forum_view&t=199163&b=5]Transform gizmo plugin[/href]