Тема: Недозволений зовнішній символ
Добрий день. друзі. Зараз я вивчаю бібліотеку SFML, і хочу зробити створення вікна компактно, пересмістивши усі методи в клас Window. Але після того. як я усе виконав у мене видає ромилки:
        Якщо у вас є час на це і вам не складно. то порекомендуйте щось. Дякую за допомогу.
//main.cpp
#include"Window.h"
int WIDTH = 1280;
int HEIGHT = 720;
const std::string title = "title";
int main()
{
    Window::CreateWindow(WIDTH, HEIGHT, title);
    while (Window::IsOpen())
    {
        while (Window::PollEvent())
        {
            Window::Events();
        }
        Window::Display();
    }
    return 0;
}//Window.h
#pragma once
#include<SFML/Graphics.hpp>
class Window
{
public:
    static void CreateWindow(int width,int height,std::string title);
    static bool IsOpen();
    static bool PollEvent();
    static void Events();
    static void Display();
private:
    static sf::RenderWindow window;
    static sf::Event event;
};//Window.cpp
#include "Window.h"
#include<SFML/Graphics.hpp>
void Window::CreateWindow(int width,int height,std::string title)
{
    window.setSize(sf::Vector2u(width, height));
    window.setTitle(title);
}
bool Window::IsOpen()
{
    return window.isOpen();
}
bool Window::PollEvent()
{
    return window.pollEvent(event);
}
void Window::Events()
{
    if (event.type == sf::Event::Closed)window.close();
    if (event.key.code == sf::Keyboard::Escape)window.close();
}
void Window::Display()
{
    window.display();
}




 інклюд він і є інклюд
 інклюд він і є інклюд  