This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
confused by libxml2 installation
- From: "david.liberce" <david dot liberce at sycomore dot fr>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Oct 2003 13:41:58 +0200
- Subject: confused by libxml2 installation
Hi!
This is a couple of questions concerning the libxml that comes along with
cygwin.
I'm trying to compile the example files from the libxml tutorial and I'm
having trouble with undefined reference to `_xmlStrcmp'. I link it against
the libxml though, and it seems to contain the missing symbol :
dliberce:~/soft/toto1> gcc -lxml2 toto.c -I/usr/include/libxml2 -L/lib
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x3e):toto.c:
undef
ined reference to `_xmlStrcmp'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x5f):toto.c:
undef
ined reference to `_xmlNodeListGetString'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x7b):toto.c:
undef
ined reference to `__imp__xmlFree'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x126):toto.c:
unde
fined reference to `_xmlParseFile'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x157):toto.c:
unde
fined reference to `_xmlDocGetRootElement'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x183):toto.c:
unde
fined reference to `_xmlFreeDoc'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x19e):toto.c:
unde
fined reference to `_xmlStrcmp'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x1c5):toto.c:
unde
fined reference to `_xmlFreeDoc'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x1ee):toto.c:
unde
fined reference to `_xmlStrcmp'
/cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccMrXqGT.o(.text+0x21a):toto.c:
unde
fined reference to `_xmlFreeDoc'
collect2: ld returned 1 exit status
dliberce:~/soft/toto1>
dliberce:~/soft/toto1>
dliberce:~/soft/toto1>
dliberce:~/soft/toto1> nm /lib/libxml2.a | grep xmlStrcmp
000020e0 T _xmlStrcmp
U _xmlStrcmp
U _xmlStrcmp
U _xmlStrcmp
dliberce:~/soft/toto1>
dliberce:~/soft/toto1> xml2-config --version
2.5.7
dliberce:~/soft/toto1> xml2-config --libs
-lxml2
dliberce:~/soft/toto1>
Anybody has a clue of what's going on here ?
Actually, there are several libxml :
dliberce:/lib> ls *xml*
lib-org-xml-sax.a libxml2.a libxml2.dll.a libxml2.la xml2Conf.sh
dliberce:/lib>
Anybody knows what libxml2.dll.a is? Is it a dll or a static archive like
libxml2.a ? How can I know which of the 3 libxml files gcc tries to use? And
how can I direct him?
Any information or pointer to some doc or manual will be welcome!
David
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/