Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: libxml/parser.h: No such file or directory

I'm attempting to use XML (Chapter 10 in Professional iPhone and iPad Database Application Programming), and I've run into a bit of trouble.

Under Header Search Paths in Build Settings I have this path:
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/libxml2/

That's all fine and well, but then:

#import <libxml/parser.h>
#import <libxml/tree.h>
error: libxml/parser.h: No such file or directory

If I flip the imports:

#import <libxml/tree.h>
#import <libxml/parser.h>
error: libxml/tree.h: No such file or directory

Weird.

For now I have this:

#import <libxml/catalog.h> // Dirty hack
#import <libxml/parser.h>
#import <libxml/tree.h>
error: libxml/catalog.h: No such file or directory

But that's no good for a production app.

like image 921
Thromordyn Avatar asked Dec 02 '22 03:12

Thromordyn


1 Answers

Try changing your header search path to ${SDK_DIR}/usr/include/libxml2.

like image 79
Joe Avatar answered Dec 04 '22 04:12

Joe