Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: How to include <libxml/tree.h> ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to include <libxml/tree.h> ?




On Dec 26, 2005, at 09:52 , William Turner wrote:

I added /usr/include/libxml2 to the header search paths in my project when I used that library. I know that fixes it, I don't know if that's the only or best solution.

That makes it redundant, if /usr/include is in the search path it will find libxml/tree.h.


If you think this is wrong then it wouldn't load sys/type.h files because /usr/include/sys is not listed in the search path.

I suspect he's using an SDK that doesn't have the files or he's deleted the /usr/include search path.

Wil

On Dec 26, 2005, at 9:26 AM, Theodore H. Smith wrote:

I've got some code that uses an include like this:

#include <libxml/tree.h>

How do I get this to compile? I tried dragging in the folder from / usr/include/libxml2/libxml into my Xcode project (thus creating a group in my project containing references to all the files in this folder), but this didn't work. Xcode tells me that it can't find tree.h

What's the correct technique for getting these sort of includes to work? I need to map "libxml/" to "/usr/include/libxml2/libxml" somehow?? But how?

-- Dale _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to include <libxml/tree.h> ? (From: "Theodore H. Smith" <email@hidden>)
 >Re: How to include <libxml/tree.h> ? (From: William Turner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.