Unresolved external linking CEGUI

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

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 11:30

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?

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Mon Sep 12, 2016 14:28

@peymankop: Perhaps the order matters? Try to put "CEGUIBase-0_d.lib" as the last of the "CEGUI*" libs.

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 15:02

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?

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Mon Sep 12, 2016 15:08

@peymankop: Which cegui version, compiler (and version), target architecture (x86 or x64)?

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 15:39

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

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Mon Sep 12, 2016 15:44

@peymankop: Do u mind uploading the whole project somewhere so I can try it myself? (but clean it first).

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 15:47

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 :)

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 15:49

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 :)

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Mon Sep 12, 2016 15:56

@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.

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 16:24

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

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Mon Sep 12, 2016 17:59

@peymankop: Thanx, I look into it.

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Mon Sep 12, 2016 18:40

YaronCT wrote:@peymankop: Thanx, I look into it.

thanks i'm waiting :)

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Tue Sep 13, 2016 09:07

@peymankop: Your cegui headers aren't identical to the official ones.

peymankop
Just popping in
Just popping in
Posts: 12
Joined: Mon Sep 12, 2016 11:24

Re: Unresolved external linking CEGUI

Postby peymankop » Tue Sep 13, 2016 13:16

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?

YaronCT
CEGUI Team
Posts: 448
Joined: Fri Jun 19, 2015 12:18
Location: Kiryat-Bialik, Israel

Re: Unresolved external linking CEGUI

Postby YaronCT » Tue Sep 13, 2016 13:18

@peymankop: U mean cegui's "String.h" causes u problem? What problem?


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests