[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] Re: XML - tutorial compilation
- From: "The MiP RvL" <the_mip_rvl myrealbox com>
- To: xml gnome org
- Subject: [xml] Re: XML - tutorial compilation
- Date: Sat, 26 Apr 2003 19:13:16 +0200
As a courtesy to others, I'd appreciate it if you send questions to the
list. That way the question and answer are archived and available for
others: http://mail.gnome.org/mailman/listinfo/xml
Thanks,
John
On Fri, 2003-04-25 at 10:22, Roland van Laar wrote:
> Hello
>
> Through the xmlsoft.org website, I found your tutorial.
> While i was going through the tutorial and the source.
> I tried to compile the source. http://xmlsoft.org/tutorial/apb.html
>
> I installed libxml2-2.5.7 from source.
>
> This gave me a lot of problems.
> "make prog" didn't work, it gave a lot of errors.
>
> First it gave this error while processing
> make xml2
>
> xml2.c:5:30: libxml/xmlmemory.h: No such file or directory
> xml2.c:6:27: libxml/parser.h: No such file or directory
>
> after reading on the mailinglist archive I found that it had to do something with libxml1 and libxml2 incompatability. So I copied the /usr/local/include/libxml2/libxml to /usr/local/include/libxml
>
> After that it gave the following error:
>
> make xml2
> cc xml2.c -o xml2
> /tmp/cc1XJ6Yv.o(.text+0x26): In function `parseStory':
> : undefined reference to `xmlStrcmp'
> /tmp/cc1XJ6Yv.o(.text+0x40): In function `parseStory':
> : undefined reference to `xmlNodeListGetString'
> /tmp/cc1XJ6Yv.o(.text+0x64): In function `parseStory':
> : undefined reference to `xmlFree'
> /tmp/cc1XJ6Yv.o(.text+0x87): In function `parseDoc':
> : undefined reference to `xmlParseFile'
> /tmp/cc1XJ6Yv.o(.text+0xb9): In function `parseDoc':
> : undefined reference to `xmlDocGetRootElement'
> /tmp/cc1XJ6Yv.o(.text+0xe6): In function `parseDoc':
> : undefined reference to `xmlFreeDoc'
> /tmp/cc1XJ6Yv.o(.text+0x101): In function `parseDoc':
> : undefined reference to `xmlStrcmp'
> /tmp/cc1XJ6Yv.o(.text+0x129): In function `parseDoc':
> : undefined reference to `xmlFreeDoc'
> /tmp/cc1XJ6Yv.o(.text+0x152): In function `parseDoc':
> : undefined reference to `xmlStrcmp'
> /tmp/cc1XJ6Yv.o(.text+0x180): In function `parseDoc':
> : undefined reference to `xmlFreeDoc'
> collect2: ld returned 1 exit status
> make: *** [xml2] Error 1
>
> After reading in the mailinglist archives
> that it had to do with libxml1 vs libxml2 issues
> and hints that it should be with -lxml
> I tried and it worked with:
>
> cc -lxml xml2.c -o xml
>
> Could you please put in the tutorial the compile arguments
> so that new readers don't have to search for this.
>
> MVG
>
> Roland van Laar
>
> ps. Could you include your e-mail adres to the tutorial, because I had to go through a small pain to get it.
>
--
John Fleck
jfleck inkstain net (h) jfleck abqjournal com (w)
http://www.inkstain.net http://www.abqjournal.com
http://www.gnome.org/learn/users-guide/latest/
"Not only isn't reality real - it's an illusion created by unreal people to
sell real people unnecesary cars." - Griffy
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]