On 13.09.2006 22:54, Lukas Erlinghagen wrote: > 3. objreg.t > > Error: > libs/csutil/t/objreg.t: In member function `void > csObjectRegistryTest::testGet()': > libs/csutil/t/objreg.t:184: error: cannot convert from base `iBase' to > derived type `iString' via virtual base `iBase' > libs/csutil/t/objreg.t:188: error: cannot convert from base `iBase' to > derived type `iString' via virtual base `iBase' > > Solution: > Use 'dynamic_cast' instead of 'static_cast'.
This is wrong. You can't dynamic_cast interfaces - CS doesn't even support RTTI! The solution is to query the interface with scfQueryInterface. > > 4. inlining > > Error: > ./include/cssysdef.h: In destructor `CppUnit::TestFactory::~TestFactory()': > ./include/cssysdef.h:711: sorry, unimplemented: inlining failed in call to > 'void operator delete(void*) throw ()': function not considered for inlining > ./out/msysx86/debug/libs/csutil/t/inputdef.cpp:16: sorry, unimplemented: > called from here > > Solution: > It seems that MinGW's gcc 3.4.5 does not like forced inlining at all. So, > CS_FORCE_INLINE as well as CS_FORCEINLINE_TEMPLATEMETHOD have to be #defined > as 'inline' for this compiler release. #including cssysdef.h before the cppunit headers in the generated sources works, too. (Probably some earlier definition of new tripping up gcc.) -f.r.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Crystal-main mailing list Crystal-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]