So I'm fallowing the CodingMadeEasy Platformer tutorial, but I have been doing sfml for a couple of days now so I know the syntax between 1.6 and 2.1 wont be much of a problem. But what is really getting to me is this problem.
Here is the Code First:
ScreenManager.h
#ifndef SCREENMANGER_H
#define SCREENMANGER_H
#pragma once
#include <string>
#include <iostream>
class ScreenManager
{
public:
~ScreenManager();
static ScreenManager GetInstance();
void SetText(std::string text);
void DrawText();
private:
ScreenManager();
ScreenManager(ScreenManager const&);
void operator = (ScreenManager const&);
std::string text;
};
#endif
ScreenManager.cpp
#include "ScreenManager.h"
ScreenManager &ScreenManager::GetInstance()
{
static ScreenManager instance;
return instance;
}
ScreenManager::ScreenManager()
{
}
ScreenManager::~ScreenManager()
{
}
The link to the video is
The compiler is telling me
Error 1 error LNK2019: unresolved external symbol "public: static class ScreenManager __cdecl ScreenManager::GetInstance(void)" (?GetInstance@ScreenManager@@SA?AV1@XZ) referenced in function "void __cdecl `dynamic initializer for 'sm''(void)" (??__Esm@@YAXXZ) C:\Users\Vcjr\documents\visual studio 2013\Projects\Pwn or Die Trying\Pwn or Die Trying\ScreenManager.obj Pwn or Die Trying
3 IntelliSense: declaration is incompatible with "ScreenManager ScreenManager::GetInstance()" (declared at line 12 of "c:\users\vcjr\documents\visual studio 2013\projects\pwn or die trying\pwn or die trying\ScreenManager.h") c:\Users\Vcjr\Documents\Visual Studio 2013\Projects\Pwn or Die Trying\Pwn or Die Trying\ScreenManager.cpp 3 31 Pwn or Die Trying
I know that c++ code could be outdate but I'm also very new to making classes and such.