Hi,
I'm trying to compile an addin to Openoffice-calc (scsolver).

I use regcomp to register the library into the rdb file and I get this error :
....................................................................................................
../../../../solver/680/unxlngi6.pro/bin/regcomp -register -r scsolver.uno.rdb -c scsolver.uno.so
register component 'scsolver.uno.so' in registry 'scsolver.uno.rdb' failed!
error (CannotRegisterImplementationException): loading component library failed: scsolver.uno.so
....................................................................................................

An old thread talk about this kind of problem, but following the steps explained in this thread didn't fix the problem.

The solution proposed was to add the -fno-rtti option when compiling the C++ code.
In my case, that leads to this error :
....................................................................................................
/usr/bin/g++-3.4 -fno-rtti -DDEBUG -Wall -Os -mtune=pentium3 -I../../../../solver/680/unxlngi6.pro/inc -I../../../source/inc -I. -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILITY_FEATURE \ -o nlpqnewton.o -fPIC -fno-common -export-dynamic -c ../../../source/numeric/nlpqnewton.cxx In file included from ../../../../solver/680/unxlngi6.pro/inc/boost/shared_ptr.hpp:27,
                from ../../../source/inc/numeric/diff.hxx:32,
                from ../../../source/numeric/nlpqnewton.cxx:30:
../../../../solver/680/unxlngi6.pro/inc/boost/detail/shared_count.hpp: In member function `virtual void* boost::detail::sp_counted_base_impl<P, D>::get_deleter(const std::type_info&)': ../../../../solver/680/unxlngi6.pro/inc/boost/detail/shared_count.hpp:267: error: can't use typeid with -fno-rtti
In file included from ../../../source/inc/numeric/diff.hxx:32,
                from ../../../source/numeric/nlpqnewton.cxx:30:
../../../../solver/680/unxlngi6.pro/inc/boost/shared_ptr.hpp: In function `D* boost::get_deleter(const boost::shared_ptr<U>&)': ../../../../solver/680/unxlngi6.pro/inc/boost/shared_ptr.hpp:424: error: can't use typeid with -fno-rtti
....................................................................................................

Here'is the output of the  "ldd scsolver.uno.so" command :
       linux-gate.so.1 =>  (0xffffe000)
       libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7d21000)
       libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7cff000)
       libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7bd0000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7bc6000)
       /lib/ld-linux.so.2 (0x80000000)


Thank you for your attention,

Mikaël




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

Reply via email to