Apache OpenOffice (AOO) Bugzilla – Issue 23502
MSVC 6 build breaks in extensions/source/propctrlr
Last modified: 2004-10-15 15:17:18 UTC
The build of cws_srx645_ooo111fix1 stops in extensions/source/propctrlr with the following errorlog. cc'in hr as he's doing the fix1 merge. ------------------------------ Making:..\..\wntmsci9.pro\slo\cellbindinghelper.obj c:\PROGRA~1\MSVS6\VC98\bin\cl.exe -Zm200 -c -nologo -Gs -Gy -I. -I..\..\wntmsci9.pro\inc\pcr -I..\inc -I..\..\inc -I..\..\WIN\inc -I..\..\wntmsci9.pro\inc -I. -Ie:\w1\cws_srx645_ooo111fix1\solver\645\wntmsci9.pro\inc\stl -Ie:\w1\cws_srx645_ooo111fix1\solver\645\wntmsci9.pro\inc\external -Ie:\w1\cws_srx645_ooo111fix1\solver\645\wntmsci9.pro\inc -Ie:\w1\cws_srx645_ooo111fix1\solenv\wntmsci9\inc -Ie:\w1\cws_srx645_ooo111fix1\solenv\inc -Ie:\w1\cws_srx645_ooo111fix1\res -Ie:\w1\cws_srx645_ooo111fix1\solver\645\wntmsci9.pro\inc\stl -Ic:\j2sdk1.4.2\include\win32 -Ic:\j2sdk1.4.2\include -Ic:\psdk02_2003\include -Ic:\progra~1\msvs6\vc98\include -I. -I..\..\res -I. -Ob1 -Zi -Fd..\..\wntmsci9.pro\misc\_ooo_st_pcr.PDB -Ox -Oy- -Gd -GX -DWNT -DWNT -DNT351 -DMSC -DMI200 -DINTEL -D_USE_NAMESPACE -D_X86_=1 -DFULL_DESK -DSTLPORT_VERSION=400 -DWINVER=0x400 -D_WIN32_IE=0x400 -D_MT -DCPPU_ENV=msci -DSUPD=645 -DBUILD=8718 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DFIX645 -DCOMPMOD_NAMESPACE=pcr -DCOMPMOD_RESPREFIX=pcr -DSHAREDLIB -D_DLL_ -DWIN32 -D_MT -D_DLL -DWIN32 -D_MT -D_DLL -DMULTITHREAD -W3 -Fo..\..\wntmsci9.pro\slo\cellbindinghelper.obj e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx c:\PROGRA~1\MSVS6\VC98\bin\cl.exe @d:\temp\mk20 cellbindinghelper.cxx e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(146) : error C2065: 'Reference' : undeclared identifier e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(146) : error C2275: 'TYPE' : illegal use of this type as an expression e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see declaration of 'TYPE' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(146) : error C2065: 'xTypedNode' : undeclared identifier e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(146) : error C2065: 'UNO_QUERY' : undeclared identifier e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(147) : error C2228: left of '.is' must have class/struct/union type e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : error C2065: 'XChild' : undeclared identifier e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : error C2065: 'xChild' : undeclared identifier e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : warning C4804: '>' : unsafe use of type 'bool' in operation e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : warning C4552: '>' : operator has no effect; expected operator with side-effect e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(152) : error C2228: left of '.is' must have class/struct/union type e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(153) : error C2227: left of '->getParent' must point to class/struct/union e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2893: Failed to specialize function template 'class com::sun::star::uno::Reference<TYPE> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' With the following template arguments: 'class com::sun::star::frame::XModel' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2143: syntax error : missing ')' before 'const' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2780: 'class com::sun::star::uno::Reference<TYPE> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' : expects 1 arguments - 0 provided e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : see declaration of 'getTypedModelNode' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2059: syntax error : ')' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(162) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::frame::XModel> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(146) : error C2275: 'TYPE' : illegal use of this type as an expression e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see declaration of 'TYPE' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(147) : error C2228: left of '.is' must have class/struct/union type e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : warning C4804: '>' : unsafe use of type 'bool' in operation e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(151) : warning C4552: '>' : operator has no effect; expected operator with side-effect e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(152) : error C2228: left of '.is' must have class/struct/union type e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(153) : error C2227: left of '->getParent' must point to class/struct/union e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2893: Failed to specialize function template 'class com::sun::star::uno::Reference<TYPE> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' With the following template arguments: 'class com::sun::star::drawing::XDrawPage' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2143: syntax error : missing ')' before 'const' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2780: 'class com::sun::star::uno::Reference<TYPE> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' : expects 1 arguments - 0 provided e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : see declaration of 'getTypedModelNode' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(144) : error C2059: syntax error : ')' e:\w1\cws_srx645_ooo111fix1\extensions\source\propctrlr\cellbindinghelper.cxx(168) : see reference to function template instantiation 'class com::sun::star::uno::Reference<class com::sun::star::drawing::XDrawPage> __cdecl pcr::`anonymous-namespace'::getTypedModelNode(const class com::sun::star::uno::Reference<class com::sun::star::uno::XInterface> &)' being compiled ---*TG_SLO.MK*--- dmake.exe: Error code 130, while making '..\..\wntmsci9.pro\slo\cellbindinghelper.obj'
Set target to 1.1.1
This one won't make it into ooo111fix1 anymore. The CWS is currently integrated. Will be fixed on another FIX645 CWS.
hro@fs: Your code. I doubt this is broken in ooo111fix1. We had problems with the VC6 and namespaces in templates before. (Sorry I don't remember the file). Try to use 'com::sun::star' instead of '::com::sun::star'. Be aware that a working version might be exclusive to only one compiler, so you have to work with #ifdef MSC_VER <=
I suspect it's the anonymous namespace which causes the trouble here. We should try using some "using" declaratives *inside* this namespace - this is what already helped in analogous code in xmloff/source/forms. I cannot test this here at the moment, and also do not have checkin access (@home), but will try this on monday. Volker, in case you want to try it before: Insert the following at the top of the anonymous namespace (which starts a few lines before the first error): using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::XInterface; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::frame::XModel; using ::com::sun::star::drawing::XDrawPage;
Created attachment 11927 [details] Patch for extensions/
Hi Frank, XChild was missing ;-) The previous patch fixed it for MSVC6. As ...fix1 is closed we have to wait for ...fix2.
fix checked in on the ooo111fix3 branch. Thanks Volker.
close issue.