objectiveflickr
objectiveflickr copied to clipboard
invalid token after top level declarator
I couldn't build the iphone demo SnapAndRun. When i compile i have this error : invalid token after top level declarator SCSchemaDefinition.h:3959 SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
Could you help me ?
Yeah, I got this error after upgrading to xcode 3.2.4. Under build settings, try changing the compiler from llvm 1.5 to llvm-gcc4.2. That fixed it for me.
Actually, you can keep llvm 1.5, and just add the following to Other C Flags in your project's build settings: -D__IPHONE_OS_VERSION_MIN_REQUIRED=040100 where you replace 040100 with your deployment target version (030000 for 3.0, for example).
See http://stackoverflow.com/questions/3677879/strange-issue-after-upgrading-to-ios-4-1-sdk
I'm having the same problem. I've tried changing the build settings to add the Other C Flags, double and tripple checked the build settings, messed with the compiler type. I can't get it to build in the simulator. It seems to work fine on the device however.
I'm also having this problem :/ The build settings config didn't work.