[xml] Newbie trouble compiling test code



I'm trying to learn the basics of XML to save config files for my GTK/GNOME apps. Unfortunately, I don't see a great deal of docs. I downloaded the testreader and testwriter code from:

http://xmlsoft.org/examples/index.html

but when I compile, I get the following error:

testwriter.c: In function `testXmlwriterDoc':
testwriter.c:603: warning: assignment makes pointer from integer without a cast
testwriter.c: In function `testXmlwriterTree':
testwriter.c:871: warning: assignment makes pointer from integer without a cast
/tmp/ccQwUsW8.o(.text+0xc74): In function `testXmlwriterDoc':
: undefined reference to `xmlNewTextWriterDoc'
/tmp/ccQwUsW8.o(.text+0x12d7): In function `testXmlwriterTree':
: undefined reference to `xmlNewTextWriterTree'
collect2: ld returned 1 exit status

I've just installed libxml2-2.6.2 and grepped through /usr/local/include/libxml2 and don't see any reference to the xmlNewTextWriter functions. So something seems amiss.

Any advice / pointers to simple test code / would be appreciated.

I just want to store values for various structs and the relationships between them. Basically, I want to store a large graph with nodes and connections.

Thanks,

DT

--
Technical Director - Virginia Center for Computer Music
http://www.virginia.edu/music/vccm.html





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]