You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by wathek <wa...@gmail.com> on 2008/12/14 11:43:31 UTC

Xalan and Mingw error : ld.exe: cannot find -lxalan-c

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 ?

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


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by anonymuss <an...@gmail.com>.
I have the same problem as described before, but after gcc update it is still
here. Is there anything else I should do?


David Bertoni wrote:
> 
> wathek wrote:
>> I'm using Msys 1.0.10 (I installed the .exe file) and the version of gcc
>> I
>> got is 3.4.2 this is what I get when I do gcc -v:
>> Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
>> Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
>> --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
>> --disable-nls --enable-languages=c,c++,f77,ada,objc,java
>> --disable-win32-registry --disable-shared --enable-sjlj-exceptions
>> --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
>> --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
>> --enable-libstdcxx-debug
>> Thread model: win32
>> gcc version 3.4.2 (mingw-special)
> You should upgrade to the latest release, which is:
> 
> gcc -v
> Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
> Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc 
> --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 
> --prefix=/mingw --enable-threads --disable-nls 
> --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry 
> --disable-shared --enable-sjlj-exceptions --enable-libgcj 
> --disable-java-awt --without-x --enable-java-gc=boehm 
> --disable-libgcj-debug --enable-interpreter 
> --enable-hash-synchronization --enable-libstdcxx-debug
> Thread model: win32
> gcc version 3.4.5 (mingw-vista special r3)
> 
>> 
>> ah just one thing when I do make in the xalan source directory it shows
>> me
>> an error I had to set the CPLUS_INCLUDE_PATH variable to /local/include
>> so
>> make can find the xerces headers
> This isn't necessary, if you define XERCESCROOT properly.
> 
> Dave
> 
> 

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


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by wathek <wa...@gmail.com>.
Thanx a lot David it's ok now ;) 


David Bertoni wrote:
> 
> wathek wrote:
>> I'm using Msys 1.0.10 (I installed the .exe file) and the version of gcc
>> I
>> got is 3.4.2 this is what I get when I do gcc -v:
>> Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
>> Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
>> --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
>> --disable-nls --enable-languages=c,c++,f77,ada,objc,java
>> --disable-win32-registry --disable-shared --enable-sjlj-exceptions
>> --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
>> --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
>> --enable-libstdcxx-debug
>> Thread model: win32
>> gcc version 3.4.2 (mingw-special)
> You should upgrade to the latest release, which is:
> 
> gcc -v
> Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
> Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc 
> --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 
> --prefix=/mingw --enable-threads --disable-nls 
> --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry 
> --disable-shared --enable-sjlj-exceptions --enable-libgcj 
> --disable-java-awt --without-x --enable-java-gc=boehm 
> --disable-libgcj-debug --enable-interpreter 
> --enable-hash-synchronization --enable-libstdcxx-debug
> Thread model: win32
> gcc version 3.4.5 (mingw-vista special r3)
> 
>> 
>> ah just one thing when I do make in the xalan source directory it shows
>> me
>> an error I had to set the CPLUS_INCLUDE_PATH variable to /local/include
>> so
>> make can find the xerces headers
> This isn't necessary, if you define XERCESCROOT properly.
> 
> Dave
> 
> 

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


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by David Bertoni <db...@apache.org>.
wathek wrote:
> I'm using Msys 1.0.10 (I installed the .exe file) and the version of gcc I
> got is 3.4.2 this is what I get when I do gcc -v:
> Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
> Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
> --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
> --disable-nls --enable-languages=c,c++,f77,ada,objc,java
> --disable-win32-registry --disable-shared --enable-sjlj-exceptions
> --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
> --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
> --enable-libstdcxx-debug
> Thread model: win32
> gcc version 3.4.2 (mingw-special)
You should upgrade to the latest release, which is:

gcc -v
Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc 
--with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 
--prefix=/mingw --enable-threads --disable-nls 
--enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry 
--disable-shared --enable-sjlj-exceptions --enable-libgcj 
--disable-java-awt --without-x --enable-java-gc=boehm 
--disable-libgcj-debug --enable-interpreter 
--enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)

> 
> ah just one thing when I do make in the xalan source directory it shows me
> an error I had to set the CPLUS_INCLUDE_PATH variable to /local/include so
> make can find the xerces headers
This isn't necessary, if you define XERCESCROOT properly.

Dave

Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by wathek <wa...@gmail.com>.
I'm using Msys 1.0.10 (I installed the .exe file) and the version of gcc I
got is 3.4.2 this is what I get when I do gcc -v:
Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads
--disable-nls --enable-languages=c,c++,f77,ada,objc,java
--disable-win32-registry --disable-shared --enable-sjlj-exceptions
--enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm
--disable-libgcj-debug --enable-interpreter --enable-hash-synchronization
--enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

ah just one thing when I do make in the xalan source directory it shows me
an error I had to set the CPLUS_INCLUDE_PATH variable to /local/include so
make can find the xerces headers

thanx a lot guy ;)


David Bertoni wrote:
> 
> wathek wrote:
>> Hello
>> Thanx a lot David it's ok for the error with xalanMsg symlinks solved
>> that
>> prob but I get this new error :
>> 
>> Info: resolving xalanc_1_11::XalanDOMString::s_empty       by linking to
>> __imp___ZN11xalanc_1_1114XalanDOMString7s_emptyE (auto-import)
>> Info: resolving vtable for xalanc_1_11::XSLTInputSourceby linking to
>> __imp___ZTVN11xalanc_1_1115XSLTInputSourceE (auto-import)
>> ../../obj/process.o(.text+0x2c01):process.cpp: variable 'vtable for
>> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
>> documentation for ld's --enable-auto-import for details.
>> ../../obj/process.o(.text+0x2c2a):process.cpp: variable 'vtable for
>> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
>> documentation for ld's --enable-auto-import for details.
>> ../../obj/process.o(.text+0x3077):process.cpp: variable 'vtable for
>> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
>> documentation for ld's --enable-auto-import for details.
>> ../../obj/process.o(.text+0x332c):process.cpp: variable 'vtable for
>> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
>> documentation for ld's --enable-auto-import for details.
>> collect2: ld returned 1 exit status
>> make[1]: *** [../../bin/testXSLT] Error 1
>> make: *** [all] Error 2
>> 
>> I use the CPLUS_INCLUDE_PATH variable set to /local/include and
>> LIBRARY_PATH
>> variable set to /local/lib
>> coz when I unset LIBRARY_PATH I get this error :
>> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:
>> cannot
>> find -lxerces-c
>> collect2: ld returned 1 exit status
>> make[1]: *** [../../bin/testXSLT] Error 1
>> make: *** [all] Error 2
>> 
>> so any idea to solve that problem ?
> I was able to build all of the binaries and run the conformance tests to 
> verify a good build.  Perhaps this is a problem with the version of 
> Mingw or gcc you're using.
> 
> Can you verify what versions of Mingw and Msys you have installed? 
> Also, what is the output from running "gcc -v"?
> 
> Dave
> 
> 

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


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by David Bertoni <db...@apache.org>.
wathek wrote:
> Hello
> Thanx a lot David it's ok for the error with xalanMsg symlinks solved that
> prob but I get this new error :
> 
> Info: resolving xalanc_1_11::XalanDOMString::s_empty       by linking to
> __imp___ZN11xalanc_1_1114XalanDOMString7s_emptyE (auto-import)
> Info: resolving vtable for xalanc_1_11::XSLTInputSourceby linking to
> __imp___ZTVN11xalanc_1_1115XSLTInputSourceE (auto-import)
> ../../obj/process.o(.text+0x2c01):process.cpp: variable 'vtable for
> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
> documentation for ld's --enable-auto-import for details.
> ../../obj/process.o(.text+0x2c2a):process.cpp: variable 'vtable for
> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
> documentation for ld's --enable-auto-import for details.
> ../../obj/process.o(.text+0x3077):process.cpp: variable 'vtable for
> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
> documentation for ld's --enable-auto-import for details.
> ../../obj/process.o(.text+0x332c):process.cpp: variable 'vtable for
> xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
> documentation for ld's --enable-auto-import for details.
> collect2: ld returned 1 exit status
> make[1]: *** [../../bin/testXSLT] Error 1
> make: *** [all] Error 2
> 
> I use the CPLUS_INCLUDE_PATH variable set to /local/include and LIBRARY_PATH
> variable set to /local/lib
> coz when I unset LIBRARY_PATH I get this error :
> c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot
> find -lxerces-c
> collect2: ld returned 1 exit status
> make[1]: *** [../../bin/testXSLT] Error 1
> make: *** [all] Error 2
> 
> so any idea to solve that problem ?
I was able to build all of the binaries and run the conformance tests to 
verify a good build.  Perhaps this is a problem with the version of 
Mingw or gcc you're using.

Can you verify what versions of Mingw and Msys you have installed? 
Also, what is the output from running "gcc -v"?

Dave

Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by wathek <wa...@gmail.com>.
Hello
Thanx a lot David it's ok for the error with xalanMsg symlinks solved that
prob but I get this new error :

Info: resolving xalanc_1_11::XalanDOMString::s_empty       by linking to
__imp___ZN11xalanc_1_1114XalanDOMString7s_emptyE (auto-import)
Info: resolving vtable for xalanc_1_11::XSLTInputSourceby linking to
__imp___ZTVN11xalanc_1_1115XSLTInputSourceE (auto-import)
../../obj/process.o(.text+0x2c01):process.cpp: variable 'vtable for
xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
../../obj/process.o(.text+0x2c2a):process.cpp: variable 'vtable for
xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
../../obj/process.o(.text+0x3077):process.cpp: variable 'vtable for
xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
../../obj/process.o(.text+0x332c):process.cpp: variable 'vtable for
xalanc_1_11::XSLTInputSource' can't be auto-imported. Please read the
documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
make[1]: *** [../../bin/testXSLT] Error 1
make: *** [all] Error 2

I use the CPLUS_INCLUDE_PATH variable set to /local/include and LIBRARY_PATH
variable set to /local/lib
coz when I unset LIBRARY_PATH I get this error :
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot
find -lxerces-c
collect2: ld returned 1 exit status
make[1]: *** [../../bin/testXSLT] Error 1
make: *** [all] Error 2

so any idea to solve that problem ?

Thanx a lot ;)

David Bertoni wrote:
> 
> wathek wrote:
>> 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
> Interesting.  On my machine, Mingw-msys fails due to a problem making 
> the symlinks.
> 
> I'm working on a solution, but for the time being, you can make the 
> symlinks yourself, and re-start the build.  So, in the lib directory for 
> the build:
> 
> ln -fs libxalanMsg1_11_0.dll libxalanMsg.dll
> 
> When you re-start the build, it will fail again, so you can create the 
> "symlink" for the main DLL:
> 
> ln -fs libxalan-c1_11_0.dll libxalan-c.dll
> 
> When you re-start the build, it should finish at this point.
> 
> Dave
> 
> 

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


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by David Bertoni <db...@apache.org>.
wathek wrote:
> 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
Interesting.  On my machine, Mingw-msys fails due to a problem making 
the symlinks.

I'm working on a solution, but for the time being, you can make the 
symlinks yourself, and re-start the build.  So, in the lib directory for 
the build:

ln -fs libxalanMsg1_11_0.dll libxalanMsg.dll

When you re-start the build, it will fail again, so you can create the 
"symlink" for the main DLL:

ln -fs libxalan-c1_11_0.dll libxalan-c.dll

When you re-start the build, it should finish at this point.

Dave

Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by wathek <wa...@gmail.com>.
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.


Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by David Bertoni <db...@apache.org>.
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

Re: Xalan and Mingw error : ld.exe: cannot find -lxalan-c

Posted by wathek <wa...@gmail.com>.
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 ?
> 
> thanx a lot
> 

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