SDL.h is included in all files, however this specific struct doesn't seem to be recognised in certain files despite others (SDL_Event) being recognised with no problems.
#include <SDL.h>
class GameScreen
{
protected:
SDL_Renderer* mRenderer; //SDL_Renderer not recognised
public:
GameScreen(SDL_Renderer* renderer); //same here
//irrelevant code omitted
}
Hovering over these errors shows the attached image and I'm not sure what to make of it. SDL_Renderer* is used in other files with no problems at all, although there are also several files with the same problem. Any help here would be appreciated, still very new to SDL and kinda new to c++ so I'm expecting an easy fix that I've missed.