QuantLibAddin - Building Addin for Calc

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

QuantLibAddin - Building Addin for Calc

alihassani

Hello, can anyone help resolve this error I get when running this command to build the Calc Addin under QuantLibAddin 1.8.0?

 

make -f Makefile.oo

 


mkdir -p /home/ali/libreoffice5.2_sdk/LINUXexample.out/slo/CalcAddinCpp
gcc -c -fpic -fvisibility=hidden -O -I. -I/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc -I/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/examples -I/usr/lib/libreoffice/sdk/include -I/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp -I -I -I -I -I -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3 -DHAVE_GCC_VISIBILIT
e5.2_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o qladdin.cpp
qladdin.cpp: In function ‘com::sun::star::uno::Reference<com::sun::star::uno::XInterface> create_CalcAddins_impl(const com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&)’:
qladdin.cpp:182:55: error: invalid new-expression of abstract class type ‘CalcAddins_impl
    return static_cast< ::cppu::OWeakObject * > ( new
CalcAddins_impl );
                                                      
^~~~~~~~~~~~~~~
In file included from
qladdin.cpp:21:0:
./qladdin.hpp:79:7: note:   because the following virtual functions are pure within ‘CalcAddins_impl’:
class
CalcAddins_impl
      
^~~~~~~~~~~~~~~
In file included from
/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hpp:8:0,
                from
./qladdin.hpp:57,
                from
qladdin.cpp:21:
/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hdl:100:86: note:   virtual com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> > quantlib::XCalcAddins::qlModelG2Calibrate(const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::sta
:uno::Any> >&, const com::sun::star::uno::Any&, const com::sun::star::uno::Any&, const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<int> >&, const com::sun::star::uno::Any&)
    virtual ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > > SAL_CALL
qlModelG2Calibrate( const ::css::uno::Any& ObjectId, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& CalibrationHelpers, const ::css::uno::Any& Method, const ::css::uno::Any& EndCriteria, const ::css::uno::Any& Cons
ce< ::css::uno::Sequence< ::css::uno::Any > >& Weights, const ::css::uno::Sequence< ::css::uno::Sequence< ::sal_Int32 > >& FixedCoeff, const ::css::uno::Any& Trigger ) /* throw (::css::uno::RuntimeException, ::std::exception) */ = 0;
                                                                                     
^~~~~~~~~~~~~~~~~~
In file included from
/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hpp:8:0,
                from
./qladdin.hpp:57,
                from
qladdin.cpp:21:
/home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/XCalcAddins.hdl:101:86: note:   virtual com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> > quantlib::XCalcAddins::qlOneFactorAffineModelCalibrate(const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<
m::sun::star::uno::Any> >&, const com::sun::star::uno::Any&, const com::sun::star::uno::Any&, const com::sun::star::uno::Any&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any> >&, const com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<int> >&, const com::sun::star::uno:
    virtual ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > > SAL_CALL
qlOneFactorAffineModelCalibrate( const ::css::uno::Any& ObjectId, const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& CalibrationHelpers, const ::css::uno::Any& Method, const ::css::uno::Any& EndCriteria, const ::css::u
::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any > >& Weights, const ::css::uno::Sequence< ::css::uno::Sequence< ::sal_Int32 > >& FixedCoeff, const ::css::uno::Any& Trigger ) /* throw (::css::uno::RuntimeException, ::std::exception) */ = 0;
                                                                                     
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile.oo:227: /home/ali/libreoffice5.2_sdk/LINUXexample.out/slo/CalcAddinCpp/qladdin.o] Error 1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: QuantLibAddin - Building Addin for Calc

Eric Ehlers-3
Hi Ali,

The QuantLibAddin build for Calc was last updated in version 1.6 and has
not really been maintained since then.  I would suggest that you start
by trying to get the 1.6 build working, and then see what has changed in
1.8.

Kind Regards,
Eric

On Sat, 03 Dec 2016 19:25:52 -0500
Ali Hassani <[hidden email]> wrote:

> Hello, can anyone help resolve this error I get when running this
> command to build the Calc Addin under QuantLibAddin 1.8.0?
>
> make -f Makefile.oo
>
>
> *qladdin.cpp:* In function
> ‘*com::sun::star::uno::Reference<com::sun::star::uno::XInterface>
> create_CalcAddins_impl(const
> com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext>&)*’:
> *qladdin.cpp:182:55:* *error: *invalid new-expression of abstract
> class type ‘*CalcAddins_impl*’
> *CalcAddins_impl* );
> *^~~~~~~~~~~~~~~*
> *qladdin.cpp:21:0*:
> *./qladdin.hpp:79:7:* *note: *  because the following virtual
> functions are pure within ‘*CalcAddins_impl*’:
> *CalcAddins_impl*
> *^~~~~~~~~~~~~~~*
> */home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/
> XCalcAddins.hpp:8:0*,
> *./qladdin.hpp:57*,
> *qladdin.cpp:21*:
> */home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/
> XCalcAddins.hdl:100:86:* *note: *  virtual
> com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any>
> > quantlib::XCalcAddins::qlModelG2Calibrate(const
> > com::sun::star::uno::Any&, const
> com::sun::star::uno::Sequence<com::sun::sta
> *qlModelG2Calibrate*( const ::css::uno::Any& ObjectId,
> const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any >
> >& CalibrationHelpers, const ::css::uno::Any& Method,
> >const ::css::uno::Any& EndCriteria, const ::css::uno::Any& Cons
> *^~~~~~~~~~~~~~~~~~*
> */home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/
> XCalcAddins.hpp:8:0*,
> *./qladdin.hpp:57*,
> *qladdin.cpp:21*:
> */home/ali/libreoffice5.2_sdk/LINUXexample.out/inc/CalcAddinCpp/quantlib/
> XCalcAddins.hdl:101:86:* *note: *  virtual
> com::sun::star::uno::Sequence<com::sun::star::uno::Sequence<com::sun::star::uno::Any>
> > quantlib::XCalcAddins::qlOneFactorAffineModelCalibrate(const
> > com::sun::star::uno::Any&,
> const com::sun::star::uno::Sequence<
> *qlOneFactorAffineModelCalibrate*( const ::css::uno::Any& ObjectId,
> const ::css::uno::Sequence< ::css::uno::Sequence< ::css::uno::Any >
> >& CalibrationHelpers, const ::css::uno::Any& Method,
> >const ::css::uno::Any& EndCriteria, const ::css::u
> *^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
>
>


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users