Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid token after top level declarator #7

Open
rubijn opened this issue Sep 15, 2010 · 4 comments
Open

invalid token after top level declarator #7

rubijn opened this issue Sep 15, 2010 · 4 comments

Comments

@rubijn
Copy link

rubijn commented Sep 15, 2010

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 ?

@boxerab
Copy link

boxerab commented Oct 10, 2010

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
Copy link

boxerab commented Oct 11, 2010

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

@averydev
Copy link

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.

@shiki
Copy link

shiki commented Nov 29, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants