Bare with me...
I can create a new Dark GDK project using the Dark GDK Game installed template and make it look like this:
#include "DarkGDK.h"
// bunch of comments, blah blah
// this is the main entry point yada yada
void DarkGDK ( void )
{
dbWaitKey ();
}
It runs...
But when I try to make a Dark GDK project WITHOUT using the templates (i.e. just an empty C++ project) I get two different outcomes:
Outcome 1: This works just fine:
#include "DarkGDK.h"
void DarkGDK ( void )
{
while ( LoopGDK () )
{
dbWaitKey ();
}
}
I get no errors.
Outcome 2: This does not work fine. I get a linker error "fatal error LNK1561: entry point must be defined"
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbWaitKey ();
}
Now, I have been coding for several years now, and I understand what this error message means. But I am just a little confused: Isn't void DarkGDK ( void ) my entry point? But that doesn't even seem to make a difference since the only real difference between these two code snippets is a while loop with LoopGDK (). This would lead one to believe that LoopGDK () is the required entry point...do you see what I am saying? I have even compared all the project settings between the template version and the non-template versiond and I can't seem to figure out what the problem is. Any thoughts?