Petr Mladek wrote:
On Monday 21 November 2005 17:17, Petr Mladek wrote:

On Monday 21 November 2005 15:05, Stephan Bergmann wrote:

Please try the following changes instead (and let me know whether they
work for you):

cppu/inc/com/sun/star/uno/Sequence.h 1.16.16.1
cppu/inc/com/sun/star/uno/Type.h 1.13.16.2

It helped to compile both ucbhelper and comphelper. The compilation has not
crashed yet.


It seems that the project testtools includes one more complex template for getCppuType. I got this build error:

Making: ../../unxlngi6.pro/lib/bridgetest.uno.so
g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-rpath,'$ORIGIN' -shared -Wl,-O1 -Wl,--version-script ../../unxlngi6.pro/misc/component.LINUXIgcc3_bridgetest.uno.map -L../../unxlngi6.pro/lib -L../lib -L/usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solenv/unxlngi6/lib -L/usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/lib -L/usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solenv/unxlngi6/lib -L/usr/lib/jvm/java/lib -L/usr/lib/jvm/java/jre/lib/i386 -L/ usr/lib/jvm/java/jre/lib/i386/client -L/usr/lib/jvm/java/jre/lib/i386/native_threads -L/usr/X11R6/lib -L/usr/lib/xulrunner-1.8 ../../unxlngi6.pro/slo/bridgetest.uno_version.o ../../unxlngi6.pro/slo/bridgetest.uno_description.o -o ../../unxlngi6.pro/lib/bridgetest.uno.so ../../unxlngi6.pro/slo/bridgetest.o ../../unxlngi6.pro/slo/multi.o -luno_cppu -luno_cppuhelpergcc3 -luno_sal -ldl -lpthread -lm -Wl,-Bdynamic -lst
lport_gcc
../../unxlngi6.pro/slo/bridgetest.o: In function `void com::sun::star::uno::operator<<=<test::testtools::bridgetest::TestPolyStruct<unsigned short> >(com::sun::star::uno::Any&, test::testtools::bridgetest::TestPolyStruct<unsigned short> const&)':/usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/solver/680/unxlngi6.pro/inc/com/sun/star/uno/Any.hxx:219: undefined reference to `com::sun::star::uno::Type const& getCppuType<test::testtools::bridgetest::TestPolyStruct<unsigned short>
(test::testtools::bridgetest::TestPolyStruct<unsigned short> const*)'

collect2: ld returned 1 exit status
dmake:  Error code 1, while making '../../unxlngi6.pro/lib/bridgetest.uno.so'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /usr/src/packages/BUILD/ooo-build-src680.139.3/build/src680-m139/testtools/source/bridgetest

The template for this function seems to be declared in inc/test/testtools/bridgetest/TestPolyStruct.hdl

What do you think? Should it be moved to Type.h as well?

The problem is the same as with getCppuType for the Sequence template---the resulting getCppuType is not a specialization of the primary template, but a second, overloading template. However, the solution cannot be as in the Sequence case: The set of UNO entities (polymorphic struct type templates in this case) is dynamic, not static, so you cannot move all the relevant getCppuTypes to Type.h.

So, it seems yet another round of C++ trickery is needed...  Stay tuned.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to