Visual Studio 2010

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

VitaliBR
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Mon Oct 18, 2010 02:28

Visual Studio 2010

Postby VitaliBR » Mon Oct 18, 2010 02:30

Hello!

I downloaded the CEGUI-SDK-0.7.4 for Visual Studio 2010, but do not know how to configure it, is there some tutorial teaching?

Thanks

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Visual Studio 2010

Postby Kulik » Mon Oct 18, 2010 11:19

No offense intended but CEGUI is not a beginner C++ library, it's not a good way to learn how to code. You will only grow frustrated and nothing will work for months... It's much faster to start with something simpler.
See http://www.cegui.org.uk/wiki/index.php/Requirements

If you know your way around C++, you should be able to figure out what to do with the files. Otherwise, do yourself a favor and spend some time messing with something simpler.

VitaliBR
Not too shy to talk
Not too shy to talk
Posts: 25
Joined: Mon Oct 18, 2010 02:28

Re: Visual Studio 2010

Postby VitaliBR » Mon Oct 18, 2010 11:59

It offended friend,

I program with DirectX, PhysX, OpenGL for some time... :wink:
My Project:


The problem is that all linker includes and libs in my project, but when compiling the sample FirstWindow (CEGUI-SDK-0.7.4-VC10 \ Samples \ FirstWindow),
it has the following errors:

Code: Select all

1>  Sample_FirstWindow.cpp
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CEGuiSample::run(void)" (__imp_?run@CEGuiSample@@QAEHXZ) referenced in function _main
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGuiSample::CEGuiSample(void)" (__imp_??0CEGuiSample@@QAE@XZ) referenced in function "public: __thiscall FirstWindowSample::FirstWindowSample(void)" (??0FirstWindowSample@@QAE@XZ)
1>Sample_FirstWindow.obj : error LNK2001: unresolved external symbol "protected: virtual bool __thiscall CEGuiSample::initialise(void)" (?initialise@CEGuiSample@@MAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall CEGuiSample::cleanup(void)" (?cleanup@CEGuiSample@@MAEXXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall CEGuiSample::~CEGuiSample(void)" (__imp_??1CEGuiSample@@UAE@XZ) referenced in function "public: virtual __thiscall FirstWindowSample::~FirstWindowSample(void)" (??1FirstWindowSample@@UAE@XZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::setText(class CEGUI::String const &)" (__imp_?setText@Window@CEGUI@@QAEXABVString@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::setMinSize(class CEGUI::UVector2 const &)" (__imp_?setMinSize@Window@CEGUI@@QAEXABVUVector2@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::setMaxSize(class CEGUI::UVector2 const &)" (__imp_?setMaxSize@Window@CEGUI@@QAEXABVUVector2@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::setSize(class CEGUI::UVector2 const &)" (__imp_?setSize@Window@CEGUI@@QAEXABVUVector2@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::UDim::~UDim(void)" (__imp_??1UDim@CEGUI@@QAE@XZ) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::UVector2::~UVector2(void)" (__imp_??1UVector2@CEGUI@@QAE@XZ) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::setPosition(class CEGUI::UVector2 const &)" (__imp_?setPosition@Window@CEGUI@@QAEXABVUVector2@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: 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) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::UDim::UDim(float,float)" (__imp_??0UDim@CEGUI@@QAE@MM@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::Window::addChildWindow(class CEGUI::Window *)" (__imp_?addChildWindow@Window@CEGUI@@QAEXPAV12@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Window * __thiscall CEGUI::System::setGUISheet(class CEGUI::Window *)" (__imp_?setGUISheet@System@CEGUI@@QAEPAVWindow@2@PAV32@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Window * __thiscall CEGUI::WindowManager::createWindow(class CEGUI::String const &,class CEGUI::String const &)" (__imp_?createWindow@WindowManager@CEGUI@@QAEPAVWindow@2@ABVString@2@0@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::WindowManager & __cdecl CEGUI::Singleton<class CEGUI::WindowManager>::getSingleton(void)" (__imp_?getSingleton@?$Singleton@VWindowManager@CEGUI@@@CEGUI@@SAAAVWindowManager@2@XZ) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall CEGUI::System::setDefaultMouseCursor(class CEGUI::String const &,class CEGUI::String const &)" (__imp_?setDefaultMouseCursor@System@CEGUI@@QAEXABVString@2@0@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class CEGUI::System & __cdecl CEGUI::System::getSingleton(void)" (__imp_?getSingleton@System@CEGUI@@SAAAV12@XZ) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::String::~String(void)" (__imp_??1String@CEGUI@@QAE@XZ) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class CEGUI::Scheme & __thiscall CEGUI::NamedXMLResourceManager<class CEGUI::Scheme,class CEGUI::Scheme_xmlHandler>::create(class CEGUI::String const &,class CEGUI::String const &,enum CEGUI::XMLResourceExistsAction)" (__imp_?create@?$NamedXMLResourceManager@VScheme@CEGUI@@VScheme_xmlHandler@2@@CEGUI@@QAEAAVScheme@2@ABVString@2@0W4XMLResourceExistsAction@2@@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: 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) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>Sample_FirstWindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::String::String(char const *)" (__imp_??0String@CEGUI@@QAE@PBD@Z) referenced in function "public: virtual bool __thiscall FirstWindowSample::initialiseSample(void)" (?initialiseSample@FirstWindowSample@@UAE_NXZ)
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Vitali\Desktop\CEGUI\Debug\CEGUI.exe : fatal error LNK1120: 25 unresolved externals


I know it's because we're missing them .lib "additional dependencies" right?
I do not know what I put

Thanks

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Visual Studio 2010

Postby Kulik » Mon Oct 18, 2010 13:03

OK, so I assume you are not using the provided solution and project files, right? Why are you compiling CEGUI sample with custom project?

Anyways, I think you have to add CEGUIBase.lib, CEGUI samples support library and perhaps some other libraries to the linker flags. See the provided project files for the exact names and paths.

HTH


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests