[Solved]CEGUI 0.7.5 static linking

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

AlanDa
Just popping in
Just popping in
Posts: 12
Joined: Wed Aug 26, 2009 17:13

[Solved]CEGUI 0.7.5 static linking

Postby AlanDa » Sat Jan 15, 2011 14:04

I got some issues when I try to static link CEGUI 0.7.5.

While compiling my app fine with dynamic libs I get loads of "unresolved external symbol" errors (for example: __declspec(dllimport) public: void __thiscall CEGUI::MouseCursor::hide(void)" (__imp_?hide@MouseCursor@CEGUI@@QAEXXZ)" ).

I've just removed the dnymic libs and added the *_Static.lib's to the linker options. Is there anything else I need to to in order to compile my app with static CEGUI libs?
Last edited by AlanDa on Sat Jan 15, 2011 22:27, edited 4 times in total.

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

Re: CEGUI 0.7.5 static linking

Postby Kulik » Sat Jan 15, 2011 16:19

Unfortunately (as you probably found out), there is no documentation about static linking. There are a couple of threads regarding it though: http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=4285 and http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=4798.

Unless you really need static linking, I would strongly advise against it. It's a lot of pain for very little gain.

We will try to document this for 0.8.

AlanDa
Just popping in
Just popping in
Posts: 12
Joined: Wed Aug 26, 2009 17:13

Re: CEGUI 0.7.5 static linking

Postby AlanDa » Sat Jan 15, 2011 21:57

Thanks for the links.

After a bit of fiddling it's working now. Thanks :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 6 guests