linker problem

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

Podunk
Just popping in
Just popping in
Posts: 8
Joined: Sun Mar 12, 2006 21:39

linker problem

Postby Podunk » Tue Mar 14, 2006 01:27

I am trying to build an ogre-cegui project with VS.NET 2003 (7.1)

The project compiles just fine, but when it links, there is 1 linker error:

error LNK2001: unresolved external symbol "public: void __thiscall CEGUI::Referenced::addRef(void)const " (?addRef@Referenced@CEGUI@@$$FQBEXXZ)


I am using the latest lib and header files.

CEGUI is the first item in the additional include directories list, and the additional library directories list.

here is some relevant code from my project:

Code: Select all

#include <CEGUIImageset.h>
#include <CEGUISystem.h>
#include <CEGUILogger.h>
#include <CEGUISchemeManager.h>
#include <CEGUIWindowManager.h>
#include <CEGUIWindow.h>
#include <elements/CEGUICombobox.h>
#include <elements/CEGUIListbox.h>
#include <elements/CEGUIListboxTextItem.h>
#include <elements/CEGUIPushButton.h>
#include <elements/CEGUIScrollbar.h>
#include <elements/CEGUIStaticImage.h>
#include "OgreCEGUIRenderer.h"
#include "OgreCEGUIResourceProvider.h"


I've been picking at it for so long now that I've run out of ideas.

Podunk
Just popping in
Just popping in
Posts: 8
Joined: Sun Mar 12, 2006 21:39

Postby Podunk » Tue Mar 14, 2006 02:57

I think I fixed it by adding CEGUIBase_d.lib to the "additional dependencies" list for the linker input.

Now I am getting 10 of these errors:

error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in MSVCRTD.lib(MSVCR71D.dll)

anyone have any ideas?

Podunk
Just popping in
Just popping in
Posts: 8
Joined: Sun Mar 12, 2006 21:39

Postby Podunk » Tue Mar 14, 2006 05:27

seems its just not my day

I was able to resolve the error in my previous post and now I'm getting

vague error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (OgreNewtonApplication): (0x0200018a).
vague fatal error LNK1255: link failed because of metadata errors


The line of code causing the error to appear when linking is:

CEGUI::OgreCEGUIRenderer* abc;


PLEASE SOMEONE HELP :cry:

Podunk
Just popping in
Just popping in
Posts: 8
Joined: Sun Mar 12, 2006 21:39

Postby Podunk » Wed Mar 15, 2006 02:17

please does anyone have any ideas!!!!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 24 guests