Page 1 of 2

Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 11:30
by peymankop
Hi, i want to add cegui into my project,i built the library successfully.
here is the line of code i use in my engine:

Code: Select all

CEGUI::System::create(*d_renderer, d_resourceProvider, 0, d_imageCodec, 0,
      "", logFile);


when i build my project it shows me this error:
Severity Code Description Project File Line Column

Code: Select all

Error   LNK2019   unresolved external symbol "public: static class CEGUI::System & __cdecl CEGUI::System::create(class CEGUI::Renderer &,class CEGUI::ResourceProvider *,class CEGUI::XMLParser *,class CEGUI::ImageCodec *,class CEGUI::ScriptModule *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?create@System@CEGUI@@SAAAV12@AAVRenderer@2@PAVResourceProvider@2@PAVXMLParser@2@PAVImageCodec@2@PAVScriptModule@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@5H@Z) referenced in function "public: virtual bool __cdecl AngelCore::AngelSubSystem::GUIManager::StartUp(...)" (?StartUp@GUIManager@AngelSubSystem@AngelCore@@UAA_NZZ)   AngelEngine   E:\AngelEngine-Next-Generation\AngelEngine\GUIManager.obj   1   1


i link these library:
CEGUIDirect3D11Renderer-0_d.lib
CEGUIBase-0_d.lib
CEGUICommonDialogs-0_d.lib
CEGUICoreWindowRendererSet_d.lib
CEGUIExpatParser_d.lib
freetype_d.lib
jpeg_d.lib
libexpat_d.lib
libpng_d.lib
pcre_d.lib
SILLY_d.lib
zlib_d.lib

anybody know how can i fix this?

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 14:28
by YaronCT
@peymankop: Perhaps the order matters? Try to put "CEGUIBase-0_d.lib" as the last of the "CEGUI*" libs.

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:02
by peymankop
YaronCT wrote:@peymankop: Perhaps the order matters? Try to put "CEGUIBase-0_d.lib" as the last of the "CEGUI*" libs.

no luck :(
any other ideas?

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:08
by YaronCT
@peymankop: Which cegui version, compiler (and version), target architecture (x86 or x64)?

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:39
by peymankop
YaronCT wrote:@peymankop: Which cegui version, compiler (and version), target architecture (x86 or x64)?

i use cegui version 0.8.7
visual studio 2015 and x86

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:44
by YaronCT
@peymankop: Do u mind uploading the whole project somewhere so I can try it myself? (but clean it first).

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:47
by peymankop
YaronCT wrote:@peymankop: Do u mind uploading the whole project somewhere so I can try it myself? (but clean it first).


project size is about 900mb!
do you have any ideas?
if you are out of ideas i will surly do that :)

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:49
by peymankop
YaronCT wrote:@peymankop: Do u mind uploading the whole project somewhere so I can try it myself? (but clean it first).

can you send me a test project that works on visual studio 2015 and x86 and cegui :)
it will be very good :)

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 15:56
by YaronCT
@peymankop: Plz execute "Build -> Clean Solution" in Visual Studio. Also remove any data files (images, sounds, etc.). Once those r removed, there's no reason y the project would take so much - it'll b almost all source, and I doubt your source files take 900 MB.

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 16:24
by peymankop
YaronCT wrote:@peymankop: Plz execute "Build -> Clean Solution" in Visual Studio. Also remove any data files (images, sounds, etc.). Once those r removed, there's no reason y the project would take so much - it'll b almost all source, and I doubt your source files take 900 MB.


ok here you go.
that line of code is commented it is in : AngelCore/AngelSubsystem/Private/GuiManager.cpp line 57
when you uncomment it it will show unresolve external error.

http://s000.tinyupload.com/index.php?fi ... 9918923863

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 17:59
by YaronCT
@peymankop: Thanx, I look into it.

Re: Unresolved external linking CEGUI

Posted: Mon Sep 12, 2016 18:40
by peymankop
YaronCT wrote:@peymankop: Thanx, I look into it.

thanks i'm waiting :)

Re: Unresolved external linking CEGUI

Posted: Tue Sep 13, 2016 09:07
by YaronCT
@peymankop: Your cegui headers aren't identical to the official ones.

Re: Unresolved external linking CEGUI

Posted: Tue Sep 13, 2016 13:16
by peymankop
YaronCT wrote:@peymankop: Your cegui headers aren't identical to the official ones.

i know but String.h file cause me some problem.
how can i fix this?

Re: Unresolved external linking CEGUI

Posted: Tue Sep 13, 2016 13:18
by YaronCT
@peymankop: U mean cegui's "String.h" causes u problem? What problem?