[xml] [textXPath.c] unable to find libxml.h

Dear All,

I am just a couple of days old for libxml2 and i am finding difficulty to compile one of the example code, testXPath.c.

I am trying to use libxml2 v 2.7.8 on my mac os x 10.5.8. 
I downloaded libxml2 from ftp://xmlsoft.org/libxml2/ and installed using ./configure, make, sudo make install sequence. post that i am trying to compile the textXPath.c file from the examples folder using the following

gcc testXPath.c -l libxml2 -I /usr/local/include/libxml2

But it throws an error libxml.h: No such file or directory. 
Can you please give me pointers from where i can download the required libxml.h?

Kind regards,

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