Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Thousand of errors in base classes like NSObject.h,NSObjCRuntime.h

Tags:

iphone

I don't know why its happening .... I an integrating a twitpic api and its working fine all the projects except one. I am getting 5488 errors and that too in classes like NSObject.h and NSObjCRuntime.h . This api has a folder named Crypto which has two .c files in it, when i remove this folder from my project then the error decreases to 1 (because one of the class from this folder is used else where).All 5k+ errors are in these two class only, errors are like

FOUNDATION_EXPORT Class NSClassFromString(NSString *aClassName);
                         expected '=', ',', ';', 'asm' or '__attribute__' before '*' token

few errors are

expected identifier or '(' before '@' token
expected identifier or '(' before '-' token
expected identifier or '(' before '+' token

One thing i am sure of is that there is no error in the classes because the same code is working good in other projects. One more thing to mention is that I have two .pch and there is no effect of removing one of them.

like image 961
Amit Singh Avatar asked Mar 14 '11 07:03

Amit Singh


1 Answers

compile the files as objc, not c

like image 114
justin Avatar answered Oct 28 '22 22:10

justin