fdo#46808 - [Easy Hack] Adapt UNO services to new-style

Stephan Bergmann sbergman at redhat.com
Fri Mar 23 02:09:20 PDT 2012


On 03/23/2012 09:18 AM, Noel Grandin wrote:
> /home/noel/libo/workdir/unxlngx6.pro/CxxObject/ucb/source/ucp/ftp/ftpdynresultset.o:ftpdynresultset.cxx:function
> ftp::DynamicResultSet::DynamicResultSet(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&, rtl::Reference<ftp::FTPContent> const&,
> com::sun::star::ucb::OpenCommandArgument2 const&,
> com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment>
> const&, ftp::ResultSetFactory*): error: undefined reference to
> 'comphelper::getComponentContext(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&)'
> collect2: ld returned 1 exit status
> /home/noel/libo/workdir/unxlngx6.pro/CxxObject/ucb/source/ucp/hierarchy/dynamicresultset.o:dynamicresultset.cxx:function
> hierarchy_ucp::DynamicResultSet::DynamicResultSet(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&, rtl::Reference<hierarchy_ucp::HierarchyContent> const&,
> com::sun::star::ucb::OpenCommandArgument2 const&): error: undefined
> reference to
> 'comphelper::getComponentContext(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>
> const&)'

Ah, you just need to add comphelper to the gb_Library_add_linked_libs 
lists (keeping them in lexicographical order, please) of 
ucb/Library_ucpftp1.mk and ucb/Library_ucphier1.mk.

Stephan


More information about the LibreOffice mailing list