开发者

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

开发者 https://www.devze.com 2023-02-24 19:40 出处:网络
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.

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.

Und开发者_JAVA技巧er 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.


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


As it turns out, it was a trivial fix. I closed the project to work on another, and when I reopened it, the error was gone. Not exactly what I would have expected, but hey, it works now.

"When in doubt, reboot."

0

精彩评论

暂无评论...
验证码 换一张
取 消