objectiveflickr icon indicating copy to clipboard operation
objectiveflickr copied to clipboard

invalid token after top level declarator

Open rubijn opened this issue 15 years ago • 4 comments

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 ?

rubijn avatar Sep 15 '10 16:09 rubijn

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.

boxerab avatar Oct 10 '10 22:10 boxerab

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

boxerab avatar Oct 11 '10 00:10 boxerab

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.

averydev avatar Nov 11 '10 08:11 averydev

I'm also having this problem :/ The build settings config didn't work.

shiki avatar Nov 29 '10 05:11 shiki