Hi, I am tying to compile the Xalan - Sample XalanTransform with the Windows GNU-C++ Compilerversion MinGW. I'm getting link errors while linking against the Xalan-C_1 and Xerces-c_2 Libs.
It seems like the Linker does not find the Libaries. Is there anything wrong in my Compiler-Call ? "... gcc XalanTransform.cpp -o XalanTransform.exe -Wno-deprecated -I"C:\xsltmark\tp\xerces-c2_4_0-windows_nt-msvc_60\include" -I"C:\xsltmark\tp\xerces-c2_4_0-windows_nt-msvc_60\include\xercesc" -I"C:\xsltmark\tp\xml-xalan\c\src" -I"C:\xsltmark\tp\xml-xalan\c\src\xalanc" -L"C:\xsltmark\lib" -lHarnes_1 -lXalan-C_1 -lxerces-c_2 ..." The Directory "C:\xsltmark\lib" contains the following Libs: Harness_1.lib, Xalan-C_1.lib and xerces-c_2.lib . Here is a Snippet of the Linker-Output: "... C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0xd9):XalanTransform.cpp: undefined reference to `xercesc_2_4::XMLUni::fgXercescDefaultLocale' C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0xde):XalanTransform.cpp: undefined reference to `xercesc_2_4::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_4::PanicHandler*, xercesc_2_4::MemoryManager*)' C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0xe6):XalanTransform.cpp: undefined reference to `xalanc_1_6::XalanTransformer::initialize()' C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0xf5):XalanTransform.cpp: undefined reference to `xalanc_1_6::XalanTransformer::XalanTransformer()' C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0x119):XalanTransform.cpp: undefined reference to `xalanc_1_6::XSLTResultTarget::XSLTResultTarget(char const*)' C:\WINDOWS\TEMP/ccU2yhgb.o(.text+0x13a):XalanTransform.cpp: undefined reference to `xalanc_1_6::XSLTInputSource::XSLTInputSource(char const*)' ..." Please, can anybody give me a hint, what I am doing wrong? With regards Michael
