Page 1 of 1

[Solved]CEGUI 0.7.5 static linking

Posted: Sat Jan 15, 2011 14:04
by AlanDa
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?

Re: CEGUI 0.7.5 static linking

Posted: Sat Jan 15, 2011 16:19
by Kulik
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.

Re: CEGUI 0.7.5 static linking

Posted: Sat Jan 15, 2011 21:57
by AlanDa
Thanks for the links.

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