I'm new here, so hello world!
I'm working on a big project in C++. I'm using Visual Studio 2015 Ultimate RC.
I got 2 projects in same solution:
MyProgram and MyProgram.Input It is something like that:
Mouse.h in MyProgram.Input:
#include "SDL.h"
class Mouse
{
public:
int x, y;
void Update();
}
Mouse::Update()
{
SDL_GetMouseState(&x, &y);
}
MyProgram.Input has included SDL2 and it compiles fine!
So I included MyProgram.Input to MyProgram. MyProgram is console application, when I include "Mouse.h" to MyProgram and compile it I got this error: Cannot find include file: "SDL.h"
I want to get mouse input from MyProgram.Input in my console in MyProgram project.
SDL.h is file from MyProgram.Input, not from MyProgram!
MyProgramapplication the location of theSDL.hfile.