delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <200310171140.NAA04791@trantor.eads-dsn.com> |
From: | "david.liberce" <david DOT liberce AT sycomore DOT fr> |
To: | cygwin AT cygwin DOT com |
Subject: | confused by libxml2 installation |
Date: | Fri, 17 Oct 2003 13:41:58 +0200 |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
In-Reply-To: | <JGEMLHPCGMNLEIGOCPMGEECBIGAA.Ralf.Habacker@freenet.de> |
Importance: | Normal |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |