I get the following error when I try to build (Build->build) a unit test. My unit test is a logic test (it does not run on the device).
Things that are probably related to my problem are: I am using libxml2 and a wrapper around it (which i found at cocoawithlove).
This wrapper has some C functions defined (it is not an Objective C class with @interface and @implementation). The function i am using (and on which the error is occuring) is
NSArray *PerformHTMLXPathQuery(NSData *document, NSString *query);
The strange thing is that all works perfectly well, when I build my application and run it in the simulator. However when i try to run my unit test, i get this error:
/Users/me/XCodeWorkspace/MyProject/XPathQuery.h:15:0 Expected '=', ',', ';', 'asm' or 'attribute' before '*' token in /Users/me/XCodeWorkspace/MyProject/XPathQuery.h
There are some related questions here, but none of them seems to solve my problem. In particular: http://stackoverflow.com/questions/990906/iphone-error-expected-asm-or-attribute-before-foo But here some c++ code should be included.
Thank you for help.