CEGUI + MSVC++

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

mds
Just popping in
Just popping in
Posts: 1
Joined: Mon Feb 25, 2013 10:10

CEGUI + MSVC++

Postby mds » Mon Feb 25, 2013 10:23

I downloaded CEGUI, gathered under MSVS.Created an empty Win32 project, added the linker of the dependencies and prescribed paths. Also added the path to the include files.Copied the example here, what to check working or not.
Error:

Code: Select all

1> MSVCRTD.lib (cinitexe.obj): warning LNK4098: default library "msvcrt.lib" against the use of other libraries, use the / NODEFAULTLIB: library
1> box2dsample.obj: error LNK2019: unresolved external reference symbol "__declspec (dllimport) public: static class CEGUI :: OpenGLRenderer & __ cdecl CEGUI :: OpenGLRenderer :: bootstrapSystem (enum CEGUI :: OpenGLRenderer :: TextureTargetType)" (__imp_? bootstrapSystem @ OpenGLRenderer @ CEGUI @ @ SAAAV12 @ W4TextureTargetType @ 12 @ @ Z) in function "class CEGUI :: WindowManager & __ cdecl init_CEGUI (struct SDL_Surface &)" (? init_CEGUI @ @ YAAAVWindowManager @ CEGUI @ @ AAUSDL_Surface @ @ @ Z)
1> C: \ Users \ mds \ Documents \ Visual Studio 2012 \ Projects \ Box2dSample \ Box2dSample \ Debug \ Box2dSample.exe: fatal error LNK1120: unresolved external elements: 1


How to fix it?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: CEGUI + MSVC++

Postby CrazyEddie » Mon Feb 25, 2013 10:42

For the warning, you are linking something compiled against the debug runtime to your app that is linking to the non-debug runtime - and this == World of Pain™ so don't do that.

For the error, you must link the lib for the renderer that you're using - make sure you link the debug one to the debug build and the release one to the release build also (see above!)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 33 guests