[Libreoffice] big thanks goes to Michael Meeks

Fridrich Strba fridrich.strba at graduateinstitute.ch
Thu Feb 24 16:20:09 PST 2011


Hello,

On 24/02/2011 23:24, Zongbo Zhang wrote:
> /MAP /OPT:NOREF -safeseh -nxcompat -dynamicbase -NODEFAULTLIB -RELEASE -DEBUG -INCREMENTAL:NO /SUBSYSTEM:CONSOLE /DLL -out:../../wntmsci12.pro/bin/qa_unit.dll -map:../../wntmsci12.pro/misc/qa_unit.map ../../wntmsci12.pro/lib/iqa_unit.exp ../../wntmsci12.pro/slo/svl.obj ../../wntmsci12.pro/slo/qa_unit_version.obj ../../wntmsci12.pro/slb/svl.lib iutl.lib itools.lib ii18nisolang.lib iucbhelper.lib icomphelp.lib icppuhelper.lib icppu.lib sot.lib isal.lib icppunit_dll.lib msvcrt.lib msvcprt.lib uwinapi.lib kernel32.lib user32.lib oldnames.lib ../../wntmsci12.pro/misc/qa_unit.res
> svl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall SvNumberFormatter::~SvNumberFormatter(void)" (__imp_??1SvNumberFormatter@@QAE at XZ) referenced in function "public: void __thiscall `anonymous namespace'::Test::testNumberFormat(void)" (?testNumberFormat at Test@?A0xf1ccdc42@@QAEXXZ)
> svl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall SvNumberFormatter::SvNumberFormatter(unsigned short)" (__imp_??0SvNumberFormatter@@QAE at G@Z) referenced in function "public: void __thiscall `anonymous namespace'::Test::testNumberFormat(void)" (?testNumberFormat at Test@?A0xf1ccdc42@@QAEXXZ)
> ../../wntmsci12.pro/bin/qa_unit.dll : fatal error LNK1120: 2 unresolved externals
> dmake:  Error code 2, while making '../../wntmsci12.pro/bin/qa_unit.dll'

This should be fixed now in the master. Caolan did it faster then me :)

The problem was that we were linking with a partial static library 
instead of with the svlmi.dll library that we were supposed to 
unit-test. So, the __declspec(dllimport) * or the __imp_* in the mangled 
name being unresolved normally hints that we are linking with a static 
library where we should link a dynamic one. On Linux, this kind of 
things does not show up because the symbols are not decorated.

Cheers

F.


More information about the LibreOffice mailing list