I tried to built that using mingw-msys xerces 2.8.0 is built with no problem
but xalan the svn trunk caused some trouble I get this error :

c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot
find -lxalanMsg
collect2: ld returned 1 exit status
c:\MinGW\bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
c:\MinGW\bin\dllwrap.exe: c++ exited with status 1
make[1]: *** [../../lib/libxalan-c1_11_0.dll] Error 1
make: *** [all] Error 2


David Bertoni wrote:
> 
> wathek wrote:
>> it's ok for that I had to reimp the libs and to rename them from
>> libxalan-c_1_10.a to libxalan-c.a but now I've an other problem when I
>> try
>> to compile 
>> 
>> F:\CabMed>make
>> mingw32-make -f Makefile.Debug
>> mingw32-make[1]: Entering directory `F:/CabMed'
>> g++ -enable-stdcall-fixup -Wl,-enable-auto-import
>> -Wl,-enable-runtime-pseudo-rel
>> oc -mthreads -Wl -Wl,-subsystem,windows -o debug\CabMed.exe
>> object_script.CabMed
>> .Debug  -L"c:\Qt\4.4.3\lib" -lmingw32 -lqtmaind -lxalan-c -lxerces-c
>> -LC:\libqxt
>> /lib -lQxtGuid -lQxtCored -lQtWebKitd4 -lQtSqld4 -lQtXmld4 -lQtGuid4
>> -lQtCored4
>> ./debug\frmdossierpatient.o(.text+0x93fc): In function
>> `ZN17frmdossierpatient11imprimerOrdEv':
>> F:/CabMed/frmdossierpatient.cpp:360: undefined reference to
>> `_imp___ZN11xercesc_2_76XMLUni22fgXercescDefaultLocaleE'
>> ./debug\frmdossierpatient.o(.text+0x9404):F:/CabMed/frmdossierpatient.cpp:360:
>> undefined reference to
>> `_imp___ZN11xercesc_2_716XMLPlatformUtils10InitializeEPKcS2_PNS_12PanicHandlerEPNS_13MemoryManagerEb'
>> ./debug\frmdossierpatient.o(.text+0x9415):F:/CabMed/frmdossierpatient.cpp:363:
>> undefined reference to
>> `xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()'
>> ./debug\frmdossierpatient.o(.text+0x941d):F:/CabMed/frmdossierpatient.cpp:363:
>> undefined reference to
>> `xalanc_1_10::XalanTransformer::initialize(xercesc_2_7::MemoryManager&)'
>> ./debug\frmdossierpatient.o(.text+0x9422):F:/CabMed/frmdossierpatient.cpp:367:
>> undefined reference to
>> `xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()'
>> ./debug\frmdossierpatient.o(.text+0x9434):F:/CabMed/frmdossierpatient.cpp:367:
>> undefined reference to
>> `xalanc_1_10::XalanTransformer::XalanTransformer(xercesc_2_7::MemoryManager&)'
>> ./debug\frmdossierpatient.o(.text+0x9443):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()'
>> ./debug\frmdossierpatient.o(.text+0x945d):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XSLTResultTarget::XSLTResultTarget(char
>> const*, xercesc_2_7::MemoryManager&)'
>> ./debug\frmdossierpatient.o(.text+0x9492):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XSLTInputSource::XSLTInputSource(char
>> const*, xercesc_2_7::MemoryManager&)'
>> ./debug\frmdossierpatient.o(.text+0x94c7):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XSLTInputSource::XSLTInputSource(char
>> const*, xercesc_2_7::MemoryManager&)'
>> ./debug\frmdossierpatient.o(.text+0x94fd):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XalanTransformer::transform(xalanc_1_10::XSLTInputSource
>> const&, xalanc_1_10::XSLTInputSource const&,
>> xalanc_1_10::XSLTResultTarget
>> const&)'
>> ./debug\frmdossierpatient.o(.text+0x95c1):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XSLTResultTarget::~XSLTResultTarget()'
>> ./debug\frmdossierpatient.o(.text+0x95e7):F:/CabMed/frmdossierpatient.cpp:370:
>> undefined reference to
>> `xalanc_1_10::XSLTResultTarget::~XSLTResultTarget()'
>> ./debug\frmdossierpatient.o(.text+0x9660):F:/CabMed/frmdossierpatient.cpp:374:
>> undefined reference to
>> `xalanc_1_10::XalanTransformer::~XalanTransformer()'
>> ./debug\frmdossierpatient.o(.text+0x9686):F:/CabMed/frmdossierpatient.cpp:374:
>> undefined reference to
>> `xalanc_1_10::XalanTransformer::~XalanTransformer()'
>> ./debug\frmdossierpatient.o(.text+0x968b):F:/CabMed/frmdossierpatient.cpp:380:
>> undefined reference to `xalanc_1_10::XalanTransformer::terminate()'
>> ./debug\frmdossierpatient.o(.text+0x9690):F:/CabMed/frmdossierpatient.cpp:383:
>> undefined reference to
>> `_imp___ZN11xercesc_2_716XMLPlatformUtils9TerminateEv'
>> ./debug\frmdossierpatient.o(.text+0x9697):F:/CabMed/frmdossierpatient.cpp:386:
>> undefined reference to `xalanc_1_10::XalanTransformer::ICUCleanUp()'
>> ./debug\frmdossierpatient.o(.text$_ZN11xalanc_1_1015XSLTInputSourceD1Ev[xalanc_1_10::XSLTInputSource::~XSLTInputSource()]+0xb):
>> In function
>> `ZNK4QMapIi7QStringE10constBeginEv':c:/Qt/4.4.3/include/QtCore/../../src/corelib/tools/qmap.h:
>> undefined reference to `vtable for xalanc_1_10::XSLTInputSource'
>> ./debug\frmdossierpatient.o(.text$_ZN11xalanc_1_1015XSLTInputSourceD1Ev[xalanc_1_10::XSLTInputSource::~XSLTInputSource()]+0x16):c:/Qt/4.4.3/include/QtCore/../../src/corelib/tools/qmap.h:
>> undefined reference to `_imp___ZN11xercesc_2_711InputSourceD2Ev'
>> ./debug\frmdossierpatient.o(.text$_ZN11xalanc_1_1015XSLTInputSourceD1Ev[xalanc_1_10::XSLTInputSource::~XSLTInputSource()]+0x2f):c:/Qt/4.4.3/include/QtCore/../../src/corelib/tools/qmap.h:
>> undefined reference to `_imp___ZN11xercesc_2_77XMemorydlEPv'
>> ./debug\frmdossierpatient.o(.text$_ZN11xalanc_1_1012XalanMemMgrs10getDefaultEv[xalanc_1_10::XalanMemMgrs::getDefault()]+0x7):c:/Qt/4.4.3/include/QtCore/../../src/corelib/tools/qmap.h:
>> undefined reference to
>> `xalanc_1_10::XalanMemMgrs::getDefaultXercesMemMgr()'
>> collect2: ld returned 1 exit status
>> mingw32-make[1]: *** [debug\CabMed.exe] Error 1
>> mingw32-make[1]: Leaving directory `F:/CabMed'
>> mingw32-make: *** [debug] Error 2
>>  
>> F:\CabMed>
>> 
>> how can I do to solve that
>> 
>> Thanx a lot
>> 
>> 
>> wathek wrote:
>>> Hello all I'm trying to compile a project created by Qt 4.4.3 and
>>> Xalan-C
>>> under Windows 
>>> so in my .pro file I added : LIBS   += -lxalan-c -lxerces-c
>>> and I've downloaded the binaries for windows
>>> (Xalan-C_1_10_0-win32-msvc_60.zip and
>>> xerces-c_2_7_0-windows_2000-msvc_60.zip)
>>> so when I try to make my project I get this error : 
>>>
>>> mingw32-make -f Makefile.Debug
>>> mingw32-make[1]: Entering directory `F:/CabMed'
>>> g++ -enable-stdcall-fixup -Wl,-enable-auto-import
>>> -Wl,-enable-runtime-pseudo-reloc -mthreads -Wl -Wl,-subsystem,windows -o
>>> debug\CabMed.exe object_script.CabMed.Debug  -L"c:\Qt\4.4.3\lib"
>>> -lmingw32
>>> -lqtmaind -lxalan-c -lxerces-c -LC:\libqxt
>>> /lib -lQxtGuid -lQxtCored -lQtWebKitd4 -lQtSqld4 -lQtXmld4 -lQtGuid4
>>> -lQtCored4
>>> C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
>>> cannot find -lxalan-c
>>> collect2: ld returned 1 exit status
>>> mingw32-make[1]: *** [debug\CabMed.exe] Error 1
>>> mingw32-make[1]: Leaving directory `F:/CabMed'
>>> mingw32-make: *** [debug] Error 2
>>>
>>>
>>> how ever I put the libs of xalan and xerces in c:\Qt\4.4.3\lib and
>>> c:\mingw\lib and the include directories of xalan and xerces in
>>> c:\Qt\4.4.3\include and c:\mingw\include and the dll in c:\Qt\4.4.3\bin
>>> and c:\mingw\bin
>>>
>>> so any help please to solve that problem ?
> You cannot use Windows binaries built with the Microsoft compiler with 
> the GCC compiler in Mingw and expect it to work.  Instead, you will need 
> to build your own binaries under Mingw.
> 
> Dave
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Xalan-and-Mingw-error-%3A-ld.exe%3A-cannot-find--lxalan-c-tp20999046p21004343.html
Sent from the Xalan - C - Users mailing list archive at Nabble.com.

Reply via email to