discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUSetup objective-c , can't find libxml/tree.h file not found


From: umen
Subject: Re: GNUSetup objective-c , can't find libxml/tree.h file not found
Date: Mon, 14 Jan 2013 06:45:41 -0800 (PST)

Hi and thanks for the replay ,well i did what you told me and now im getting
new error:
$ make CC=clang
This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for help.
Making all for tool sample_app...
 Linking tool sample_app ...
./obj/sample_app.obj/HtmlParser.m.o: In function `-[HtmlParser
ExtractInnerSiteLinks::]':
d:/dev/objc/sample_app/HtmlParser.m:37: undefined reference to
`htmlReadMemory'
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to
see invocation)
make[3]: *** [obj/sample_app.exe] Error 1
make[2]: *** [internal-tool-all_] Error 2
make[1]: *** [sample_app.all.tool.variables] Error 2
make: *** [internal-all] Error 2

this is when i try to call xml2 method ? 
don't i need to tell the linker to include the libxml2?

here is my sample code :
-(void) ExtractInnerSiteLinks:(NSString*) PageHtml:(NSString*) url
{
        
        
        NSData* documentData = [PageHtml 
dataUsingEncoding:NSUTF8StringEncoding];
        NSData* urlData = [url dataUsingEncoding:NSUTF8StringEncoding];
        const char *cEncoding =[encoding UTF8String];
        xmlDocPtr doc;
        /*
        
        htmlReadMemory  (const char *buffer,
                                         int size,
                                         const char *URL,
                                         const char *encoding,
                                         int options); 
        
        */
        doc = htmlReadMemory([documentData bytes],
                               [documentData length],
                               /*[urlData bytes]*/NULL,
                               /*cEncoding*/NULL,
                               HTML_PARSE_NOBLANKS | HTML_PARSE_NOERROR |
HTML_PARSE_NOWARNING | HTML_PARSE_NONET);



} 
  




--
View this message in context: 
http://gnustep.8.n7.nabble.com/GNUSetup-objective-c-can-t-find-libxml-tree-h-file-not-found-tp32352p32362.html
Sent from the GNUstep - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]