Error when trying --enable-lto on Windows

Michael Stahl mstahl at redhat.com
Tue Sep 15 14:06:36 PDT 2015


On 15.09.2015 21:35, Tor Lillqvist wrote:
> 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)

very mysterious.  it actually says "unresolved external symbol",
entirely unlike the duplicate WeakImplHelpers with --enable-mergedlibs
that i've removed recently.

git log says you already had that problem in July,
e83499ad82bee4c2255b47c16f877ec09eff5c35

> 
> --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.

will this also turn on --enable-mergedlibs implicitly or is that off?




More information about the LibreOffice mailing list