Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective C Error on #include <libxml/tree.h>

I am trying to setup a touchxml library and getting an error libxml/tree.h no such file or directory. I added the linker flags and the header search paths as follow: /usr/include/libxml2 and linker flag -lxml2

I have looked all the documentation, but no go. Can someone help me on this?

Thanks

like image 262
iosdevnyc Avatar asked Aug 25 '11 21:08

iosdevnyc


People also ask

How do you handle errors in Objective-C?

In Objective-C programming, error handling is provided with NSError class available in Foundation framework. An NSError object encapsulates richer and more extensible error information than is possible using only an error code or error string.

What is made up of NSError object?

A string containing the error domain. The user info dictionary.

How do you throw an exception in Objective-C?

You throw (or raise) an exception by instantiating an NSException object and then doing one of two things with it: Using it as the argument of a @throw compiler directive. Sending it a raise message.

Is Objective-C going away?

If Swift succeeds, Objective-C will go away. It won't be deprecated, but it'll move to Florida to enjoy its golden years. It'll spend days running the legacy app with a million lines of code, and its nights sipping margaritas with the OAuth library everyone fears rewriting.


1 Answers

Ok I got it to work I was putting the /usr/include/libxml2 into User header search paths instead of header search path.

like image 123
iosdevnyc Avatar answered Oct 06 '22 18:10

iosdevnyc