error: expected a property attribute before 'strong'
2012-05-14 18:44
495 查看
备注:今天用最新的 myLauncher (https://github.com/Jarada/myLauncher)代码时发现
里面用了stong 在xcode4.1时编译不通过
用xcode4.2 打开项目是直接提示 error: expected a property attribute before 'strong' 把strong 换成retain 就可以,折腾了好一会,最终用下面的方法得以解决即
在 Build Settings 裡,把 Compiler 改成 Apple LLVM compiler 3.0 就可以了
里面用了stong 在xcode4.1时编译不通过
用xcode4.2 打开项目是直接提示 error: expected a property attribute before 'strong' 把strong 换成retain 就可以,折腾了好一会,最终用下面的方法得以解决即
在 Build Settings 裡,把 Compiler 改成 Apple LLVM compiler 3.0 就可以了
相关文章推荐
- error: expected a property attribute before 'strong'
- phonegap error: expected a property attribute before 'strong'
- error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’***'
- error: expected '=', ',', ';', 'asm' or '__attribute__' before 'glbvar'
- xcode4.2 error: expected a property attribute before 'strong'
- swith 引起的: expected expression before 'XXX'的 error
- gcc 编译错误 error:expected class-name before ';' token
- “expected '=', ',', ';', 'asm' or '__attribute__' before 'void'”
- echarts-all.js:1 Uncaught TypeError: Cannot read property 'getAttribute' of null
- error: expected class-name before '{' token
- error: expected ')' before '*' token
- error: expected template-name before '<' token
- C++构造函数初始化列表处提示出现 error: expected '{' before 'this'
- error: expected unqualified-id before 'int'
- ldd3 error: expected expression before 'spinlock_t' (access.c中)
- error: expected unqualified-id before 'delete' void delete(node* p,char a) ^
- c++config.h:43: error: expected unqualified-id before 'namespace'解决
- swith 引起的: expected expression before 'XXX'的 error
- error: expected unqualified-id before '-' 错误
- 在Ubuntu gcc下编译c程序,错误如下: test.c:3: error: expected ';', ',' or ')' before '&' token