I've created a project with the minimal amount of code required to reproduce this issue on my machine. It was created with the default Microsoft Visual Studio C++ application wizard settings so it has an precompiled header file. The I've created one class:
GameManager.h
#pragma once
#include "stdafx.h"
class GameManager
{
public:
GameManager();
private:
sf::RenderWindow window;
};
GameManager.cpp
#include "stdafx.h"
#include "GameManager.h"
GameManager::GameManager() : window(sf::VideoMode(800, 600), "Testing") {}
I can assure you, I've got the proper SFML files downloaded and linked to my project correctly.
When I build my application the output shows that the project succeeded in building however the error list shows a total of 6 errors that all say "no instance of constructor "sf::ContextSettings::ContextSettings" matches the argument list". Visual Studio says 4 of them are from the Window.hpp SFML file and the other two are from the RenderWindow.hpp SFML file.
This baffles me because there is nothing wrong with the construction of the render window variable and I have no idea why Visual Studio would give me 6 errors but still build the application.
Anyone know what is going on and how I can get these errors fixed?