Following suggestions I received on this site, I've been trying to work with multiple files and applying OOP concepts. When trying to compile, the following warning appears:
Aggregate "App app" has incomplete data type and cannot be defined.
Here are the files:
Main.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include "nave_v2.h"
int main()
{
App app;
while (app.IsOpen())
{
app.Clear();
app.Display();
app.GetKey();
}
return 0;
}
I'm not sure what incomplete data type means. Reading around, I thought it had something to do with the void functions, but when I changed them all to int and had them return 0, the compiler reported the same error.