Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFGUI  (Read 1844 times)

0 Members and 1 Guest are viewing this topic.

Robert

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
SFGUI
« on: January 23, 2014, 03:28:17 pm »
Hello, I have a little problem. I want use SFGUI on MS Visual C++, so I used http://en.sfml-dev.org/forums/index.php?topic=13010.0

Code with SFML  compiles normally, but when I use SFGUI (After configuration), I get errors. ;/

1>------ Build started: Project: Eter, Configuration: Release Win32 ------
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::shared_ptr<class sfg::Label> __cdecl sfg::Label::Create(class sf::String const &)" (__imp_?Create@Label@sfg@@SA?AV?$shared_ptr@VLabel@sfg@@@std@@ABVString@sf@@@Z)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::shared_ptr<class sfg::Window> __cdecl sfg::Window::Create(unsigned char)" (__imp_?Create@Window@sfg@@SA?AV?$shared_ptr@VWindow@sfg@@@std@@E@Z)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::SFGUI::Display(class sf::RenderWindow &)" (__imp_?Display@SFGUI@sfg@@QAEXAAVRenderWindow@sf@@@Z)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sfg::Container::Add(class std::shared_ptr<class sfg::Widget>)" (__imp_?Add@Container@sfg@@QAEXV?$shared_ptr@VWidget@sfg@@@std@@@Z)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall sfg::Notebook::AppendPage(class std::shared_ptr<class sfg::Widget>,class std::shared_ptr<class sfg::Widget>)" (__imp_?AppendPage@Notebook@sfg@@QAEHV?$shared_ptr@VWidget@sfg@@@std@@0@Z)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::shared_ptr<class sfg::Notebook> __cdecl sfg::Notebook::Create(void)" (__imp_?Create@Notebook@sfg@@SA?AV?$shared_ptr@VNotebook@sfg@@@std@@XZ)
1>Main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class std::shared_ptr<class sfg::Button> __cdecl sfg::Button::Create(class sf::String const &)" (__imp_?Create@Button@sfg@@SA?AV?$shared_ptr@VButton@sfg@@@std@@ABVString@sf@@@Z)
 

I don't know what I did wrong at configuration. So, I please to help me. :)

Sorry for my english.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: SFGUI
« Reply #1 on: January 23, 2014, 03:53:02 pm »
Recompile SFML and SFGUI from scratch using the same compiler. And make sure you use Visual Studio 2013 (2012 won't work with SFGUI).  ;)
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: SFGUI
« Reply #2 on: January 23, 2014, 03:56:47 pm »
What zsbzsb said and don't forget that SFGUI has its own forum, no need to post here, if it's fully related to SFGUI. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/