Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What library to import for #import <libxml/HTMLparser.h>

I have imported ASIHTTP files into my project and inside ASIWebPageRequest.m there is the following import:

#import <libxml/HTMLparser.h>

which is not recognized. What library should I add in order to be recognized?

like image 911
adrian Avatar asked Apr 27 '12 08:04

adrian


People also ask

Which Python library modules should be imported?

(i) ceil() (ii) randint() (i) Ceil() function requires math module. (ii) randint() function requires randon module.

What are import libraries in Python?

Import in Python helps you to refer to the code, i.e., . functions/objects that are written in another file. It is also used to import python libraries/packages that are installed using pip(python package manager), and you need then to use in your code.

What is import library?

An import library (. lib) file contains information the linker needs to resolve external references to exported DLL functions, so the system can locate the specified DLL and exported DLL functions at run time. You can create an import library for your DLL when you build your DLL.


2 Answers

Go to the Project build settings (Project->Edit Project Settings->Build) and find the "Search Paths". In "Header Search Paths" add the following path:

$(SDKROOT)/usr/include/libxml2

Note, you may be missing all development headers after upgrading OS X (at least this was the case for me with Mavericks). To reinstall the command line tools run:

xcode-select --install

like image 97
Maulik Avatar answered Nov 15 '22 22:11

Maulik


With xcode 4.5, it doesn't work. I try with /usr/include/libxml2 and it works well

like image 20
tnthuong Avatar answered Nov 15 '22 22:11

tnthuong