link “xxxxx-s.lib” faild

Started by begin, 14 October 2018, 12:11:44

begin

when i link static library xxxx-s.lib faild, but link xxxxx.lib is successful.

texus

What is the exact error you get? What compiler and/or IDE are you using?

begin



1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Transformable::setScale(float,float)" (__imp_?setScale@Transformable@sf@@QAEXMM@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Transformable::setPosition(float,float)" (__imp_?setPosition@Transformable@sf@@QAEXMM@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: class sf::Vector2<unsigned int> __thiscall sf::Texture::getSize(void)const " (__imp_?getSize@Texture@sf@@QBE?AV?$Vector2@I@2@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall sf::Texture::loadFromFile(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class sf::Rect<int> const &)" (__imp_?loadFromFile@Texture@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV?$Rect@H@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::Texture::~Texture(void)" (__imp_??1Texture@sf@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::Texture::Texture(void)" (__imp_??0Texture@sf@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: virtual class sf::Vector2<unsigned int> __thiscall sf::RenderWindow::getSize(void)const " (__imp_?getSize@RenderWindow@sf@@UBE?AV?$Vector2@I@2@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class sf::Color const sf::Color::Yellow" (__imp_?Yellow@Color@sf@@2V12@B)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Window::setFramerateLimit(unsigned int)" (__imp_?setFramerateLimit@Window@sf@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class sf::Color const sf::Color::Green" (__imp_?Green@Color@sf@@2V12@B)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::String::String(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::locale const &)" (__imp_??0String@sf@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABVlocale@3@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Sprite::setTexture(class sf::Texture const &,bool)" (__imp_?setTexture@Sprite@sf@@QAEXABVTexture@2@_N@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::Sprite::Sprite(void)" (__imp_??0Sprite@sf@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall sf::Text::setFillColor(class sf::Color const &)" (__imp_?setFillColor@Text@sf@@QAEXABVColor@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::Text::Text(class sf::String const &,class sf::Font const &,unsigned int)" (__imp_??0Text@sf@@QAE@ABVString@1@ABVFont@1@I@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Tabs::setTabHeight(float)" (__imp_?setTabHeight@Tabs@tgui@@QAEXM@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: unsigned int __thiscall tgui::Tabs::add(class sf::String const &,bool)" (__imp_?add@Tabs@tgui@@QAEIABVString@sf@@_N@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Tabs> __cdecl tgui::Tabs::create(void)" (__imp_?create@Tabs@tgui@@SA?AV?$shared_ptr@VTabs@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class tgui::Color const tgui::Color::Black" (__imp_?Black@Color@tgui@@2V12@B)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Gui::add(class std::shared_ptr<class tgui::Widget> const &,class sf::String const &)" (__imp_?add@Gui@tgui@@QAEXABV?$shared_ptr@VWidget@tgui@@@std@@ABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: class std::shared_ptr<class sf::Font> __thiscall tgui::Gui::getFont(void)const " (__imp_?getFont@Gui@tgui@@QBE?AV?$shared_ptr@VFont@sf@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Gui::draw(void)" (__imp_?draw@Gui@tgui@@QAEXXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall tgui::Gui::handleEvent(class sf::Event)" (__imp_?handleEvent@Gui@tgui@@QAE_NVEvent@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Gui::Gui(class sf::RenderTarget &)" (__imp_??0Gui@tgui@@QAE@AAVRenderTarget@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Texture::~Texture(void)" (__imp_??1Texture@tgui@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: unsigned int __thiscall tgui::ProgressBar::getValue(void)const " (__imp_?getValue@ProgressBar@tgui@@QBEIXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ProgressBar::setValue(unsigned int)" (__imp_?setValue@ProgressBar@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::ProgressBar> __cdecl tgui::ProgressBar::create(void)" (__imp_?create@ProgressBar@tgui@@SA?AV?$shared_ptr@VProgressBar@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Widget::setRenderer(class std::shared_ptr<struct tgui::RendererData>)" (__imp_?setRenderer@Widget@tgui@@QAEXV?$shared_ptr@URendererData@tgui@@@std@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ChatBox::setLinesStartFromTop(bool)" (__imp_?setLinesStartFromTop@ChatBox@tgui@@QAEX_N@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ChatBox::setTextSize(unsigned int)" (__imp_?setTextSize@ChatBox@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ChatBox::addLine(class sf::String const &,class tgui::Color)" (__imp_?addLine@ChatBox@tgui@@QAEXABVString@sf@@VColor@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::ChatBox> __cdecl tgui::ChatBox::create(void)" (__imp_?create@ChatBox@tgui@@SA?AV?$shared_ptr@VChatBox@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Layout::~Layout(void)" (__imp_??1Layout@tgui@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ListBox::setItemHeight(unsigned int)" (__imp_?setItemHeight@ListBox@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall tgui::ListBox::addItem(class sf::String const &,class sf::String const &)" (__imp_?addItem@ListBox@tgui@@QAE_NABVString@sf@@0@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::ListBox> __cdecl tgui::ListBox::create(void)" (__imp_?create@ListBox@tgui@@SA?AV?$shared_ptr@VListBox@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Picture> __cdecl tgui::Picture::create(class tgui::Texture const &,bool)" (__imp_?create@Picture@tgui@@SA?AV?$shared_ptr@VPicture@tgui@@@std@@ABVTexture@2@_N@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Scrollbar::setMaximum(unsigned int)" (__imp_?setMaximum@Scrollbar@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Scrollbar> __cdecl tgui::Scrollbar::create(void)" (__imp_?create@Scrollbar@tgui@@SA?AV?$shared_ptr@VScrollbar@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall tgui::ComboBox::setSelectedItem(class sf::String const &)" (__imp_?setSelectedItem@ComboBox@tgui@@QAE_NABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall tgui::ComboBox::addItem(class sf::String const &,class sf::String const &)" (__imp_?addItem@ComboBox@tgui@@QAE_NABVString@sf@@0@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::ComboBox> __cdecl tgui::ComboBox::create(void)" (__imp_?create@ComboBox@tgui@@SA?AV?$shared_ptr@VComboBox@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Slider::setValue(float)" (__imp_?setValue@Slider@tgui@@QAEXM@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Slider> __cdecl tgui::Slider::create(float,float)" (__imp_?create@Slider@tgui@@SA?AV?$shared_ptr@VSlider@tgui@@@std@@MM@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Label::setTextSize(unsigned int)" (__imp_?setTextSize@Label@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Label::setText(class sf::String const &)" (__imp_?setText@Label@tgui@@QAEXABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Label> __cdecl tgui::Label::create(class sf::String)" (__imp_?create@Label@tgui@@SA?AV?$shared_ptr@VLabel@tgui@@@std@@VString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::ChildWindow::setTitle(class sf::String const &)" (__imp_?setTitle@ChildWindow@tgui@@QAEXABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::ChildWindow> __cdecl tgui::ChildWindow::create(class sf::String const &,unsigned int)" (__imp_?create@ChildWindow@tgui@@SA?AV?$shared_ptr@VChildWindow@tgui@@@std@@ABVString@sf@@I@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Canvas::display(void)" (__imp_?display@Canvas@tgui@@QAEXXZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Canvas::draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?draw@Canvas@tgui@@QAEXABVDrawable@sf@@ABVRenderStates@4@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Canvas::clear(class tgui::Color)" (__imp_?clear@Canvas@tgui@@QAEXVColor@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::Canvas> __cdecl tgui::Canvas::create(class tgui::Layout2d)" (__imp_?create@Canvas@tgui@@SA?AV?$shared_ptr@VCanvas@tgui@@@std@@VLayout2d@2@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::EditBox::setTextSize(unsigned int)" (__imp_?setTextSize@EditBox@tgui@@QAEXI@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::EditBox::setDefaultText(class sf::String const &)" (__imp_?setDefaultText@EditBox@tgui@@QAEXABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::EditBox> __cdecl tgui::EditBox::create(void)" (__imp_?create@EditBox@tgui@@SA?AV?$shared_ptr@VEditBox@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: class std::shared_ptr<struct tgui::RendererData> __thiscall tgui::Theme::getRenderer(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?getRenderer@Theme@tgui@@QAE?AV?$shared_ptr@URendererData@tgui@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@4@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Theme::~Theme(void)" (__imp_??1Theme@tgui@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Theme::Theme(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0Theme@tgui@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::RadioButton::setText(class sf::String const &)" (__imp_?setText@RadioButton@tgui@@QAEXABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::RadioButton> __cdecl tgui::RadioButton::create(void)" (__imp_?create@RadioButton@tgui@@SA?AV?$shared_ptr@VRadioButton@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: bool __thiscall tgui::MenuBar::addMenuItem(class sf::String const &)" (__imp_?addMenuItem@MenuBar@tgui@@QAE_NABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::MenuBar::addMenu(class sf::String const &)" (__imp_?addMenu@MenuBar@tgui@@QAEXABVString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::MenuBar> __cdecl tgui::MenuBar::create(void)" (__imp_?create@MenuBar@tgui@@SA?AV?$shared_ptr@VMenuBar@tgui@@@std@@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: static class std::shared_ptr<class tgui::CheckBox> __cdecl tgui::CheckBox::create(class sf::String)" (__imp_?create@CheckBox@tgui@@SA?AV?$shared_ptr@VCheckBox@tgui@@@std@@VString@sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: virtual __thiscall sf::Text::~Text(void)" (__imp_??1Text@sf@@UAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Gui::~Gui(void)" (__imp_??1Gui@tgui@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Layout2d::~Layout2d(void)" (__imp_??1Layout2d@tgui@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Widget::setSize(class tgui::Layout,class tgui::Layout)" (__imp_?setSize@Widget@tgui@@QAEXVLayout@2@0@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: void __thiscall tgui::Widget::setPosition(class tgui::Layout,class tgui::Layout)" (__imp_?setPosition@Widget@tgui@@QAEXVLayout@2@0@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Layout2d::Layout2d(class tgui::Layout,class tgui::Layout)" (__imp_??0Layout2d@tgui@@QAE@VLayout@1@0@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Color::Color(class sf::Color const &)" (__imp_??0Color@tgui@@QAE@ABV0sf@@@Z)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ)
1>vs2017.obj : error LNK2001: "__declspec(dllimport) public: __thiscall tgui::Texture::Texture(char const *,class sf::Rect<int> const &,class sf::Rect<int> const &,bool)" (__imp_??0Texture@tgui@@QAE@PBDABV?$Rect@H@sf@@1_N@Z)



vs2017 15.8.7

texus

Based on the errors it looks like you aren't defining SFML_STATIC.

begin

```
1>sfml-window-s.lib(GlContext.cpp.obj) : error LNK2001:  __imp__glEnable@4
1>sfml-window-s.lib(GlContext.cpp.obj) : error LNK2001:  __imp__glGetError@0
1>sfml-window-s.lib(GlContext.cpp.obj) : error LNK2001:  __imp__glGetIntegerv@8
1>sfml-window-s.lib(GlContext.cpp.obj) : error LNK2001:  __imp__glGetString@4
1>sfml-window-s.lib(GlContext.cpp.obj) : error LNK2001:  __imp__glIsEnabled@4
1>sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001:  __imp__wglCreateContext@4
1>sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001:  __imp__wglDeleteContext@4
1>sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001:  __imp__wglGetProcAddress@4
1>sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001:  __imp__wglMakeCurrent@8
1>sfml-window-s.lib(WglContext.cpp.obj) : error LNK2001:  __imp__wglShareLists@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glFlush@0
1>sfml-graphics-s.lib(Shader.cpp.obj) : error LNK2001:  _glFlush@0
1>sfml-graphics-s.lib(Shader.cpp.obj) : error LNK2001:  _glGetIntegerv@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glGetIntegerv@8
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001:  _glGetIntegerv@8
1>sfml-graphics-s.lib(TextureSaver.cpp.obj) : error LNK2001:  _glGetIntegerv@8
1>sfml-graphics-s.lib(RenderTextureImplFBO.cpp.obj) : error LNK2001:  _glGetIntegerv@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glGetTexImage@20
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glLoadIdentity@0
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glLoadIdentity@0
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glLoadMatrixf@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glLoadMatrixf@4
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glMatrixMode@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glMatrixMode@4
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glTexImage2D@36
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glTexParameteri@12
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glBindTexture@8
1>sfml-graphics-s.lib(TextureSaver.cpp.obj) : error LNK2001:  _glBindTexture@8
1>sfml-graphics-s.lib(RenderTextureImplDefault.cpp.obj) : error LNK2001:  _glBindTexture@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glCopyTexSubImage2D@32
1>sfml-graphics-s.lib(RenderTextureImplDefault.cpp.obj) : error LNK2001:  _glCopyTexSubImage2D@32
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glDeleteTextures@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glGenTextures@8
1>sfml-graphics-s.lib(Texture.cpp.obj) : error LNK2001:  _glTexSubImage2D@36
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glBlendFunc@8
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glClear@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glClearColor@16
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glDisable@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glEnable@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPopAttrib@0
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPopMatrix@0
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPushAttrib@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPushMatrix@0
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glViewport@16
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glColorPointer@16
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glDisableClientState@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glDrawArrays@12
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glEnableClientState@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPopClientAttrib@0
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glPushClientAttrib@4
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glTexCoordPointer@16
1>sfml-graphics-s.lib(RenderTarget.cpp.obj) : error LNK2001:  _glVertexPointer@16
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001:  _glGetError@0
1>sfml-graphics-s.lib(GLExtensions.cpp.obj) : error LNK2001:  _glGetString@4
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Init_FreeType
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Done_FreeType
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_New_Face
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_New_Memory_Face
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Open_Face
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Done_Face
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Set_Pixel_Sizes
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Load_Char
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Get_Kerning
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Select_Charmap
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Get_Char_Index
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_MulFix
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Get_Glyph
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Glyph_To_Bitmap
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Done_Glyph
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Outline_Embolden
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Bitmap_Embolden
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Stroker_New
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Stroker_Set
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Stroker_Done
1>sfml-graphics-s.lib(Font.cpp.obj) : error LNK2001:  _FT_Glyph_Stroke
```
still link error yet

texus

These errors aren't related to TGUI. If you link SFML statically, you must also link to its dependencies.

You also need to link to the following libraries:

opengl32.lib
freetype.lib
opengl32.lib
winmm.lib
gdi32.lib
winmm.lib


More information can be found in the SFML tutorial: https://www.sfml-dev.org/tutorials/2.5/start-vc.php

begin