Как такое понимать, и как решить?
class engine
{
public:
static engine* get_engine(window** window);
graphics* get_graphics();
void draw_rectangle(D2D1_RECT_F** rectangle, ID2D1Brush** brush, bool fill = false, float stroke = 1) const;
void draw_ellipse();
void draw_text(std::wstring text);
void resize(RECT rect);
void release();
void run();
private:
explicit engine(window** wnd);
~engine();
static engine* instance_;
graphics* gfx_;
window** window_;
};
engine* engine::get_engine(window** window)
{
if (!instance_)
{
instance_ = new engine(window);
}
return instance_;
}
1>engine.obj : error LNK2001: неразрешенный внешний символ ""private: static class base::controls::engine * base::controls::engine::instance_" (?instance_@engine@controls@base@@0PEAV123@EA)"
1>C:\Users\YieR\source\repos\proj\awgui\x64\Debug\awgui.exe : fatal error LNK1120: неразрешенных внешних элементов: 1