First off, I'm running Ubuntu 7.04
I installed Expat 2.0.1 from
http://sourceforge.net/projects/expat/
'./configure'
and
'sudo make install'
It seemed to install alright. I saw no errors or anything
However, when I try to compile the sample problem from (there is a link to a zip file with the .c files [line.c, etc.])
http://www.xml.com/pub/a/1999/09/exp...ex.html?page=2
All breaks loose:
line.c:21:22: error: xmlparse.h: No such file or directory
line.c:37: error: expected ‘)’ before ‘p’
line.c: In function ‘start_hndl’:
line.c:47: error: ‘XML_Parser’ undeclared (first use in this function)
line.c:47: error: (Each undeclared identifier is reported only once
line.c:47: error: for each function it appears in.)
line.c:47: error: expected ‘)’ before ‘data’
line.c: In function ‘proc_hndl’:
line.c:65: error: ‘XML_Parser’ undeclared (first use in this function)
line.c:65: error: expected ‘)’ before ‘data’
line.c: In function ‘main’:
line.c:70: error: ‘XML_Parser’ undeclared (first use in this function)
line.c:70: error: expected ‘;’ before ‘p’
line.c:71: error: ‘p’ undeclared (first use in this function)
line.c:73: warning: incompatible implicit declaration of built-in function ‘exit’
line.c:87: warning: incompatible implicit declaration of built-in function ‘strlen’
line.c:90: warning: incompatible implicit declaration of built-in function ‘exit’
line.c:97: warning: incompatible implicit declaration of built-in function ‘exit’
line.c:69: warning: return type of ‘main’ is not ‘int’
It would appear that my expat install was unsuccessful? Or, maybe I need to add something to my path? Can anyone off any advice?