First, I wasn't sure where to put this, so I hope here is OK.
I am trying to build the "Using CEGUI In SFML" tutorial code from the wiki, but I can't get it to work. I get 69 linker errors. :?
Here is a sample:
1>App.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Window * __thiscall CEGUI::System::setGUISheet(class CEGUI::Window *)" (__imp_?setGUISheet@System@CEGUI@@QAEPAVWindow@2@PAV32@@Z)
1>App.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::String const CEGUI::FrameWindow::EventCloseClicked" (__imp_?EventCloseClicked@FrameWindow@CEGUI@@2VString@2@B)
1>App.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::UVector2::UVector2(class CEGUI::UDim const &,class CEGUI::UDim const &)" (__imp_??0UVector2@CEGUI@@QAE@ABVUDim@1@0@Z)
1>GUIManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::SchemeManager & __cdecl CEGUI::Singleton<class CEGUI::SchemeManager>::getSingleton(void)" (__imp_?getSingleton@?$Singleton@VSchemeManager@CEGUI@@@CEGUI@@SAAAVSchemeManager@2@XZ)
1>GUIManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual class CEGUI::Rect __thiscall CEGUI::OpenGLRenderer::getRect(void)const " (__imp_?getRect@OpenGLRenderer@CEGUI@@UBE?AVRect@2@XZ)
1>GUIManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CEGUI::System::injectKeyUp(unsigned int)" (__imp_?injectKeyUp@System@CEGUI@@QAE_NI@Z)
If you want to see the rest, please let me know
They are all LNK2001
The included sample project is in Visual Studio 2008 format, but I am using the 2005 version, which can't read the project file. Therefore I am starting from scratch.
Here is what I have done:
1) I downloaded CEGUI 0.6.2b Binary Downloads for Microsoft Visual C++ 8 (2005) - With SP1 SDK and installed it.
2) I added these lines to the VC++ directories:
Library files:
...\CEGUI-SDK-0.6.2-vc8\dependencies\lib
...\CEGUI-SDK-0.6.2-vc8\lib
Include files:
...\CEGUI-SDK-0.6.2-vc8\include
...\CEGUI-SDK-0.6.2-vc8\RendererModules\OpenGLGUIRenderer
The last one, \RendererModules\OpenGLGUIRenderer, wasn't in the tutorial, but the program was looking for it when I first tried to compile it (in a later step), so I added it.
3) I started a new empty Win32 project (not a console project), copied the source and header files from the tutorial project to the new project folder, and added them to the project.
4) I set the project to compile in release mode (as that was what was done in the tutorial), and added these to Linker/Input/Additional Dependencies, in the project properties:
sfml-graphics.lib sfml-main.lib sfml-system.lib sfml-window.lib glu32.lib pcre.lib CEGUIBase_Static.lib CEGUIExpatParser_Static.lib expat.lib CEGUISILLYImageCodec_Static.lib SILLY.lib OpenGLGUIRenderer_Static.lib CEGUIFalagardWRBase_Static.lib
5) Tried compiling, and got the errors above. :?
I am not overly experienced, so it is probably (hopefully) something something painfully obvious and simple.
I really hope someone can help, as I would like to get started on learning this crazy GUI thing.
Thank you in advance!