CEGUI::String warning C4251 in v0.7

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Van
Just can't stay away
Just can't stay away
Posts: 225
Joined: Fri Jan 21, 2005 20:29
Contact:

CEGUI::String warning C4251 in v0.7

Postby Van » Sun Oct 25, 2009 19:06

MS VS: 9.0 SP1+
Compiling Release

We are getting this warning when when compiling CEGUIBase:

Code: Select all


CEGUIImageset_xmlHandler.cpp
../../../cegui/include\CEGUIImageset_xmlHandler.h(65) : warning C4251: 'CEGUI::Imageset_xmlHandler::ImagesetSchemaName' : class 'CEGUI::String' needs to have dll-interface to be used by clients of class 'CEGUI::Imageset_xmlHandler'
        c:\development\libs\cegui\v0-7\cegui\include\CEGUIForwardRefs.h(99) : see declaration of 'CEGUI::String'

CEGUIFont_xmlHandler.cpp
../../../cegui/include\CEGUIFont_xmlHandler.h(41) : warning C4251: 'CEGUI::Font_xmlHandler::FontSchemaName' : class 'CEGUI::String' needs to have dll-interface to be used by clients of class 'CEGUI::Font_xmlHandler'
        c:\development\libs\cegui\v0-7\cegui\include\CEGUIForwardRefs.h(99) : see declaration of 'CEGUI::String'



Are we missing something? Incorrect dependency?

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

Re: CEGUI::String warning C4251 in v0.7

Postby CrazyEddie » Sun Oct 25, 2009 20:06

Hi,

I was aware of this already, though due to the amount that this particular warning comes up I never gave it much consideration. However, in this instance it turns out the warning is actually due to a missing include (CEGUIString.h) in each of those affected *_xmlHandler.h files - by some stroke of luck it appears that it's still harmless (only because they're static members), though it's definitely a bug that will get fixed for the 0.7.2 release.

Thanks for raising it.

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 10 guests