Page 1 of 1

CEGUI::String warning C4251 in v0.7

Posted: Sun Oct 25, 2009 19:06
by Van
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?

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

Posted: Sun Oct 25, 2009 20:06
by CrazyEddie
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.