Expat install

I downloaded the expat zip from ftp://ftp.jclark.com/pub/xml/expat.zip. I put all the files in the zip on my solaris server, under an 'expat' directory and ran make -f Makefile. Everything seemed to compile fine. Now i have a .o in the xmlparse directory for instance.

When i try to compile the elements.c in the samples directory i get some errors.

[rss10@jsh1035c:JSDISC01] make -f Makefile elements
gcc -Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD -o elements elements.c
Undefined first referenced
symbol in file
XML_GetErrorCode /tmp/ccqZ4SQ5.o
XML_ErrorString /tmp/ccqZ4SQ5.o
XML_ParserCreate /tmp/ccqZ4SQ5.o
XML_ParserFree /tmp/ccqZ4SQ5.o
XML_GetCurrentLineNumber /tmp/ccqZ4SQ5.o
XML_SetUserData /tmp/ccqZ4SQ5.o
XML_Parse /tmp/ccqZ4SQ5.o
XML_SetElementHandler /tmp/ccqZ4SQ5.o
ld: fatal: Symbol referencing errors. No output written to elements
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `elements'

Any ideas how I do this? I cpoied the elements.c to the expat directory and changed the include at the top to say "xmlparse/xmlparse.h" but it didn't make any difference.

Any ideas?

[rss10@jsh1035c:JSDISC01] make -f Makefile elements
gcc -Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD -o elements elements.c

The above Makefile seems not support to build an application because there is not any .o or library dependency in gcc command.

I believe expat's Makefile could generate library, thus you just need to write your own makefile instead of the above one.