Lael's World


Page Navigation


Post Content

» Posted By Lael Rukius, » Posted In 분류없음, » Reg Date : 2012/01/08 21:31
» Post Url : http://lael.be/430
» Last Modified at 2012/01/08 21:31
This problom has occur with this condition.

1) When using mac with previous version than Lion.

2) And upgrade to Lion and Xcode should also upgrade.

 

And complie & error.

Like "expected declaration specifiers before '-' token xcode"

 

I also confused with this problem and here below is clear answer.

 

This error occur due to system default compiler change.

LLVM GCC to GCC.

 

So you should change complier option to LLVM GCC.

 

사용자 삽입 이미지

 

And all framework path should be changed.

 

#before

#import "/usr/lnclude/sqlite3.h" //should remove  usr-include
#import "/usr/include/objc/runtime.h" //should remove usr-include

 

#after

#import <sqlite3.h> //new style import
#import <objc/runtime.h> //new style import

 



 The Post which treat similar subject 
 GNU Free Documentation License (블로그 글 저작권 규정) You can copy and distribute the Document in any medium, either commercially or noncommercially.
We grants you a worldwide, royalty-free, non-exclusive, sublicensable license.
이 블로그에 게시된 모든 글은 작성자(Lael)의 동의 없이 모든 매체에 대해 발췌 및 상업성 및 비상업성 용도로 사용하는 것을 허가합니다. 불펌 및 무단복제 권장.
2012/01/08 21:31 2012/01/08 21:31

Trackback URL : http://lael.be/trackback/430

Leave a comment