Issues compiling a project
Added by Kent Barber about 14 years ago
Hi
I am trying into integrate a simple Wt application into another application that I have written. As a test I am using the WebGLDemo project just to check that I can compile but I am having some issues. I believe it is because of boost, which I am new to. All the project C/C project settings in my project are exactly the same as the webgl.wt project but when I compile I get the following errors to do with inheritance. Has anyone else come across this?
I am using Visual Studio 2008 Express Edition.
Thanks,
Kent.
1>teapot.cpp
1>c:\projects\cinema12\plugins\web\source\teapot.cpp(96) : error C2287: 'WebGLDemo': inheritance representation: 'single_inheritance' is less general than the required 'multiple_inheritance'
1> c:\projects\cinema12\plugins\web\source\teapot.cpp(64) : see declaration of 'WebGLDemo'
1>PaintWidget.cpp
1>c:\projects\cinema12\plugins\web\source\paintwidget.cpp(195) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data
1>c:\projects\other\boost\boost_1_41_0\boost\bind\mem_fn_template.hpp(31) : error C2287: 'Wt::WObject': inheritance representation: 'single_inheritance' is less general than the required 'multiple_inheritance'
1> c:\projects\other\wt\wt-3.1.9\src\wt\wobject(100) : see declaration of 'Wt::WObject'
1> c:\projects\other\boost\boost_1_41_0\boost\bind\bind_template.hpp(344) : see reference to class template instantiation 'boost::_mfi::mf0<R,T>' being compiled
1> with
1> [
1> R=void,
1> T=Wt::WObject
1> ]
1> c:\projects\other\wt\wt-3.1.9\src\wt\wsignal(927) : see reference to class template instantiation 'boost::_bi::bind_t<R,F,L>' being compiled
1> with
1> [
1> R=void,
1> F=boost::_mfi::mf0<void,Wt::WObject>,
1> L=boost::_bi::list1<boost::_bi::value<Wt::WObject *>>
1> ]
1> c:\projects\other\wt\wt-3.1.9\src\wt\wsignal(926) : while compiling class template member function 'boost::signals::connection Wt::Signal<>::connect(Wt::WObject *,Wt::WObject::Method)'
1> c:\projects\other\wt\wt-3.1.9\src\wt\wsignal(409) : see reference to class template instantiation 'Wt::Signal<>' being compiled
Replies (1)
RE: Issues compiling a project - Added by Wim Dumon about 14 years ago
I had to google for this msvc error as I've never encountered it before.
http://www.peousware.com/member-function-pointer-size-in-visual-c/
which is more helpful than msdn's explanation:
http://msdn.microsoft.com/en-us/library/9s7t2kws%28v=VS.90%29.aspx
http://msdn.microsoft.com/en-us/library/yad46a6z%28v=VS.90%29.aspx
No idea what triggers it in your project - are you using those pragmas or compiler switches?
BR,
Wim.