Hey are anyone able to tell me wth is going on here? I've been experimenting with stdafx.h precompiled header.
#pragma once
/*I get all includes from #include "stdafx.h",which I've been explained should be located in the .cpp file
The SDL_'s are fully capable of finding the SDL.h file included in stdafx.h
*/
class Display
{
public: Display(int width, int height, const std::string& title);
void update();
~Display();
protected:
private:
//... AND YET, I get an compiler Error C2143 in the line below: "syntax error : missing ';' before '*'"
SDL_Window* window; <-- This line
SDL_Renderer* renderer;
SDL_Texture* image;
SDL_Rect bgRect;
SDL_Rect imageRect;
};
So what am I doing wrong? Btw, I haven't actually done anything to explicitly precompile the header, I've just created stdafx.h for now and put all #includes inside that file.
Or am I just blind? Thanks for input.