Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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@XZ) referenced in function 
"public: void __thiscall `anonymous namespace'::Test::testNumberFormat(void)" 
(?testNumberFormat@Test@?A0xf1ccdc42@@QAEXXZ)
svl.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall 
SvNumberFormatter::SvNumberFormatter(unsigned short)" (__imp_??0SvNumberFormatter@@QAE@G@Z) referenced in function 
"public: void __thiscall `anonymous namespace'::Test::testNumberFormat(void)" 
(?testNumberFormat@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.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.