Error when trying --enable-lto on Windows

Tor Lillqvist tml at iki.fi
Tue Sep 15 12:35:36 PDT 2015


Anybody care to guess what might cause this?

   Creating library
C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.lib and
object C:/cygwin64/home/Tor/lo/master/workdir/LinkTarget/Library/ifwk.exp
modulemanager.o : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual class com::sun::star::uno::Any
__cdecl cppu::WeakImplHelper<class
com::sun::star::container::XEnumeration>::queryInterface(class
com::sun::star::uno::Type const &)" (__imp_?queryInterface@
?$WeakImplHelper at VXEnumeration@container at star@sun at com@@@cppu@@UAA?AVAny at uno
@star at sun@com@@ABVType at 4567@@Z)
modulemanager.o : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual void __cdecl
cppu::WeakImplHelper<class
com::sun::star::container::XEnumeration>::acquire(void)" (__imp_?acquire@
?$WeakImplHelper at VXEnumeration@container at star@sun at com@@@cppu@@UAAXXZ)
modulemanager.o : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: virtual void __cdecl
cppu::WeakImplHelper<class
com::sun::star::container::XEnumeration>::release(void)" (__imp_?release@
?$WeakImplHelper at VXEnumeration@container at star@sun at com@@@cppu@@UAAXXZ)
C:/cygwin64/home/Tor/lo/master/instdir/program/fwklo.dll : fatal error
LNK1120: 3 unresolved externals

This is with a very simple autogen.input:

--disable-odk
--without-java
--enable-lto

Lots of other DLLs have already been built successfully, so it is not some
general problem with using LTO.

--tml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150915/d2dbaea6/attachment.html>


More information about the LibreOffice mailing list