CEGUI Problems in demos 4 and 6

jmonw

06-05-2006 19:08:45

Trying to build Demos 4 and 6 result in this error:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall CEGUI::OgreCEGUIRenderer::OgreCEGUIRenderer(class Ogre::RenderWindow *,unsigned char,bool,unsigned int)" (__imp_??0OgreCEGUIRenderer@CEGUI@@QAE@PAVRenderWindow@Ogre@@E_NI@Z) referenced in function "protected: virtual void __thiscall OgreNewtonApplication::createScene(void)" (?createScene@OgreNewtonApplication@@MAEXXZ)

I have completely deleted OGRE, gotten it from CVS and recompiled, and done the same thing with OgreNewt. It may very well be something stupid, but I'm at a loss. Thanks a bunch.

walaber

06-05-2006 22:47:03

have you built the OgreCEGUIRenderer project (part of Ogre), and is the OgreNewt project looking in the appropriate directory for it?

jmonw

07-05-2006 04:50:36

Yes. Everything is built and the project is looking in the ogrenew\samples\common\CEGUIrenderer\lib folder for the library file. Everything else in the project builds fine. It's just that one function that seems to be a problem.

walaber

07-05-2006 08:26:40

ah... I think the function has changed to accept a pointer to the scene manager as the last parameter now... because Dagon added the ability for multiple, simultaneous scene managers.

so just add a pointer to the scene manager at the end and see if it works!

if it does, let me know.

jmonw

07-05-2006 18:13:41

No. That didn't fix the problem. Here's the two headers for the OgreCEGUIRenderer constructor:
OgreCEGUIRenderer(Ogre::RenderWindow* window, Ogre::uint8 queue_id = Ogre::RENDER_QUEUE_OVERLAY, bool post_queue = false, uint max_quads = 0);OgreCEGUIRenderer(Ogre::RenderWindow* window, Ogre::uint8 queue_id, bool post_queue, uint max_quads, Ogre::SceneManager* scene_manager);

It seems that the Ogre::RENDER_QUEUE_OVERLAY parameter is being interpreted as a char instead of uint8. I'm going to try casting it to one.

[EDIT]
No dice there. Even though I just did, I'm going to try a complete clean/rebuild of the Ogre CEGUI renderer.
[/EDIT]

jmonw

07-05-2006 19:31:15

Nope. Even a full clean/rebuild did not work. Has anyone else had this problem?

jmonw

09-05-2006 06:04:49

The problem ended up being that I had set some global VC++ library directories that were outdated. Problem fixed. Thanks.