On 7/14/2010 9:15 AM, Rudolfo wrote:
Hi,
I have downloaded the Xml-signing samples and want to build the checksig sample.
I am linking it to xerces 3.1 and xalan 1.1 and building it with VC9. If I
include #define XSEC_NO_XALAN it builds and runs fine!
But I want to test it on xml-file with a complicated XPath transform to see the
result on the canonicalization before digest calculation. If there are another
posabilities to see this I am thankful for ideas!
When I build it not including the XSEC_NO_XALAN I get 3 linking errors:
xtest.obj : error LNK2019: unresolved external symbol
"public: static class xercesc_3_1::MemoryManager& __cdecl
xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr(void)"
(?getdefaultxercesmem...@xalanmemmgrs
@xalanc_1_10@@saaavmemorymana...@xercesc_3_1@@XZ)
referenced in function "public: static class xercesc_3_1::MemoryManager&
__cdecl xalanc_1_10::XalanMemMgrs::getDefault(void)"
(?getdefa...@xalanmemmgrs@xalanc_1_10@@saaavmemorymana...@xercesc_3_1@@XZ)
xtest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: static void __cdecl xalanc_1_10::XalanTransformer::initialize( class
xercesc_3_1::MemoryManager&)"
(__imp_?initial...@xalantransformer@xalanc_1_10@@SAXAAVMemoryManager@
xercesc_3_1@@@Z) referenced in function _main
xtest.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
public: static void __cdecl xalanc_1_10::XPathEvaluator::initialize(class
xercesc_3_1::MemoryManager&)" (__imp_?initial...@xpathevaluator@xalanc_1_10@@
saxaavmemorymana...@xercesc_3_1@@@Z)
referenced in function _main
Any ideas how to fix it?
You probably just need to include the Xalan-C import library as input to
the linker. You might want to read the documentation for the product
you're building to see if there are any instructions. Otherwise, you'll
need to modify the Linker options in the properties page in the IDE.
Dave