Before I had this which builds and works fine (except for the aforementioned slowness):
tgui::TextBox::Ptr tb(GameEngine::get()._gui, "console");
tb->load("Resources/TGUI/objects/Black.conf");
tb->disable();
tb->setPosition(0,450);
tb->setSize(800,150);
tb->setText(_consoleOutput);
tb->setTextSize(8);
I replaced it with this and now I get link errors. Any ideas what am I doing wrong?
tgui::ChatBox::Ptr tb(GameEngine::get()._gui, "console");
tb->load("Resources/TGUI/objects/Black.conf");
tb->setPosition(0,450);
tb->setSize(800,150);
tb->addLine("Welcome!", sf::Color::White);
tb->setTextSize(8);
errors:
1>PlayingState.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall tgui::SharedWidgetPtr<class tgui::ChatBox>::~SharedWidgetPtr<class tgui::ChatBox>(void)" (__imp_??1?$SharedWidgetPtr@VChatBox@tgui@@@tgui@@QAE@XZ) referenced in function "public: virtual void __thiscall PlayingState::init(void)" (?init@PlayingState@@UAEXXZ)
1>PlayingState.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class tgui::ChatBox * __thiscall tgui::SharedWidgetPtr<class tgui::ChatBox>::operator->(void)const " (__imp_??C?$SharedWidgetPtr@VChatBox@tgui@@@tgui@@QBEPAVChatBox@1@XZ) referenced in function "public: virtual void __thiscall PlayingState::init(void)" (?init@PlayingState@@UAEXXZ)
1>PlayingState.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall tgui::SharedWidgetPtr<class tgui::ChatBox>::SharedWidgetPtr<class tgui::ChatBox>(class tgui::Container &,class sf::String const &)" (__imp_??0?$SharedWidgetPtr@VChatBox@tgui@@@tgui@@QAE@AAVContainer@1@ABVString@sf@@@Z) referenced in function "public: virtual void __thiscall PlayingState::init(void)" (?init@PlayingState@@UAEXXZ)