I'm trying to write this as clearly as possible without copy/pasting a ton of code.
I like the split in the GCC4 code between a .lib file for the general engine and the .exe for the game-specific information. So I'm recreating it in my own separate project.
My Main.cpp file looks just like TeapotWars.cpp does - it declares a global MainApp object and then calls the equivalent of the GameCode4() function to initialize everything.
Here's where I'm getting stuck. In order to compile the .exe it seems to need to see the definition of the GameCodeApp class in order to properly build the TeapotWarsApp. But when I include the header file for the GameCodeApp class it can't properly link the .exe because it's looking for the body to the InitInstance() function inside the GameCodeApp class, which isn't exposed to the TeapotWarsApp project.
So... I guess my question is, how do I properly link the TeapotWarsApp class? Is it that the .exe project is looking for the .lib file that is built in the GameCode4 project? Because this seems to be building fine. Or is it something else?
Hopefully that was clear - if you need more info let me know!
I like the split in the GCC4 code between a .lib file for the general engine and the .exe for the game-specific information. So I'm recreating it in my own separate project.
My Main.cpp file looks just like TeapotWars.cpp does - it declares a global MainApp object and then calls the equivalent of the GameCode4() function to initialize everything.
Here's where I'm getting stuck. In order to compile the .exe it seems to need to see the definition of the GameCodeApp class in order to properly build the TeapotWarsApp. But when I include the header file for the GameCodeApp class it can't properly link the .exe because it's looking for the body to the InitInstance() function inside the GameCodeApp class, which isn't exposed to the TeapotWarsApp project.
So... I guess my question is, how do I properly link the TeapotWarsApp class? Is it that the .exe project is looking for the .lib file that is built in the GameCode4 project? Because this seems to be building fine. Or is it something else?
Hopefully that was clear - if you need more info let me know!