Although I've seen many questions referring to the "Incomplete type not allowed" error in C++, I still cannot figure out what the compiler is trying to tell me when it screams at me like this. I've been able to piece together that it has something to do with #include
-ing header files, but I am clueless as to what an "incomplete type" is and why it is "not allowed". I got the error when trying to inherit from SDL_Window
as such:
#pragma once
#include "SDL.h"
class Window : public SDL_Window
{
public:
Window();
~Window();
};
Could someone please explain to me what the error means, how to (generally) fix it, and, in my case, what I should do to stop it from happening?