XCode PCH Errors - objective-c

From what I can tell, this has not been asked before. I am building a cocoa touch static library and I have been going along fine until yesterday, right after I checked the project into SVN, it no longer builds and I have 36 errors in my PCH. This is all my PCH is, and I have found no problems with it in the past:
//
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif
And I get these errors:
Build MYPROJECT of project MYPROJECT with configuration Release
ProcessPCH /var/folders/rQ/rQtcY0wvHECcTKEGF6D4hk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/MYPROJECTPrefix-agsnbtjqunzmxwghwaudmojjbbgk/MYPROJECT_Prefix.pch.gch MYPROJECT_Prefix.pch normal i386 objective-c com.apple.compilers.gcc.4_2
cd /Users/rross/Documents/MYPROJECT
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -Os -Wreturn-type -Wunused-variable -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/rross/Documents/MYPROJECT-iOS/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/-generated-files.hmap -I/Users/rross/Documents/MYPROJECT/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/-own-target-headers.hmap -I/Users/rross/Documents/MYPROJECT/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/-all-target-headers.hmap -iquote /Users/rross/Documents/MYPROJECT/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/-project-headers.hmap -F/Users/rross/Documents/MYPROJECT/build/Release-iphonesimulator -I/Users/rross/Documents/MYPROJECT/build/Release-iphonesimulator/include -I/Users/rross/Documents/MYPROJECT/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/DerivedSources/i386 -I/Users/rross/Documents/MYPROJECT/build/MYPROJECT.build/Release-iphonesimulator/MYPROJECT.build/DerivedSources -c /Users/rross/Documents/MYPROJECT/_Prefix.pch -o /var/folders/rQ/rQtcY0wvHECcTKEGF6D4hk+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/_Prefix-agsnbtjqunzmxwghwaudmojjbbgk/_Prefix.pch.gch
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:9,
from /Users/rross/Documents/MYPROJECT/src/ross/util/../ui/Comparable.h:9,
from /Users/rross/Documents/MYPROJECT/src/ross/datatype/Time.h:11,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:26,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from /Users/rross/Documents/MYPROJECT/_Prefix.pch:6:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:16: error: cannot find interface declaration for 'NSObject', superclass of 'UIAcceleration'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:18: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:22: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:29: error: cannot find interface declaration for 'NSObject', superclass of 'UIAccelerometer'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:31: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:41: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:46: error: cannot find protocol declaration for 'NSObject'
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:14,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/rross/Documents/MYPROJECT/src/ross/util/../ui/Comparable.h:9,
from /Users/rross/Documents/MYPROJECT/src/ross/datatype/Time.h:11,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:26,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from /Users/rross/Documents/MYPROJECT/_Prefix.pch:6:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h:22: error: cannot find interface declaration for 'NSObject', superclass of 'UIAccessibilityElement'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h:31: error: expected specifier-qualifier-list before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h:32: error: expected specifier-qualifier-list before 'NSString'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h:33: error: expected specifier-qualifier-list before 'NSString'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityElement.h:34: error: expected specifier-qualifier-list before 'NSString'
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:10,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:10,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:12,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:15,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/rross/Documents/MYPROJECT/src/ross/util/../ui/Comparable.h:9,
from /Users/rross/Documents/MYPROJECT/src/ross/datatype/Time.h:11,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:26,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from /Users/rross/Documents/MYPROJECT/_Prefix.pch:6:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:41: error: cannot find interface declaration for 'NSObject', superclass of 'UIEvent'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:43: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:49: error: expected specifier-qualifier-list before 'NSTimeInterval'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:51: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:52: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:53: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:54: error: expected ')' before 'NSSet'
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIView.h:9,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h:10,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityAdditions.h:12,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibility.h:15,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:10,
from /Users/rross/Documents/MYPROJECT/src/ross/util/../ui/Comparable.h:9,
from /Users/rross/Documents/MYPROJECT/src/ross/datatype/Time.h:11,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:26,
from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6,
from /Users/rross/Documents/MYPROJECT/_Prefix.pch:6:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:12: error: cannot find interface declaration for 'NSObject', superclass of 'UIResponder'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:18: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:19: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:21: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:22: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:24: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:31: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:32: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:33: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:34: error: expected ')' before 'NSSet'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:42: error: expected ')' before 'BOOL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:42: error: expected ')' before 'SEL'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:43: error: expected specifier-qualifier-list before 'NSUndoManager'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:49: error: cannot find interface declaration for 'NSObject'
Couple things:
I am not using the UIKit frameworks, so why is there uikit related errors?
Sorry about the MYPROJECT junk, but the project is confidential right now.
Thank you all in advance

Try this, maybe helps
#import <Availability.h>
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
I also suggest you to do all the possible cleaning project stuff and making sure that you selected a correct/existing SDK.

Related

Compiling Objective C files with gcc-4.7 on OSX with Apple core libraries such as Foundation.h

I'm somehow unable to compile Objective C files with GCC 4.7 that include any OSX core libraries such as:
#import <Foundation/Foundation.h>
The resulting error always results in a weird GCC output:
gcc -c -pipe -O2 -arch x86_64 -mmacosx-version-min=10.8 -Wall -W -I/usr/local/Cellar/qt/4.8.4/mkspecs/macx-g++ -I../TerrainFluid -I../TerrainFluid/external -I../TerrainFluid -I. ../TerrainFluid/external/osx_bundle.mm -o osx_bundle.o
In file included from
/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:123:0,
from ../TerrainFluid/external/osx_bundle.mm:24:
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:69:24: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h:69:24: error: expected ')' before '^' token
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:159:0,
from ../TerrainFluid/external/osx_bundle.mm:24:
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:36:15: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:36:15: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:37:39: error: expected type-specifier before 'NSUserScriptTaskCompletionHandler'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:53:15: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:53:15: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:54:70: error: expected type-specifier before 'NSUserUnixTaskCompletionHandler'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:68:15: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:68:15: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:69:82: error: expected type-specifier before 'NSUserAppleScriptTaskCompletionHandler'
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:86:15: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:86:15: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h:87:72: error: expected type-specifier before 'NSUserAutomatorTaskCompletionHandler'
In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:160:0,
from ../TerrainFluid/external/osx_bundle.mm:24:
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:46:11: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:46:11: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:46:11: error: expected ';' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:47:11: error: expected unqualified-id before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:47:11: error: expected ')' before '^' token
/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h:47:11: error: expected ';' before '^' token
make: *** [osx_bundle.o] Error 1
The way to solve this problem was for me to just use the Apple compiler for the Objective C files and g++ (4.7) for the rest of the code.
gcc -> /usr/bin/llvm-gcc
g++ -> /usr/local/bin/g++-4.7
I would have used clang for all the code but it doesn't support OpenMP yet and gcc-4.2 doesn't support C++11.
Here is the sample file I used (it's the Wildfire Games OSX Resource Bundle loader). I read in a blog post that Apple introduced a GCC blocker to stop compiles with GCC.
Now is there a way to compile the code with a non Apple GCC (such as GCC 4.7)? So far I was able to find no documentation on the matter other than to use the Apple compiler.
The very first error shows the problem.
#property (copy) void (^terminationHandler)(NSTask *) NS_AVAILABLE(10_7, NA);
this is the Blocks extension. Main line GCC does not implement support for blocks.

Xcode errors with libgcrypt

In my program, I originally added json-c to it and had some missing dependencies related to libgcrypt. Now, I am getting these errors for libgcrypt that do not make any sense to me. Has anyone seen these before or are able to tell what in the world I did wrong?
CompileC /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/Objects-normal/x86_64/mpih-add1-4D47DD99C77BE382.o PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S normal x86_64 assembler-with-cpp com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/jordan/Projects/Cocoa/PianoLounge
setenv LANG en_US.US-ASCII
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x assembler-with-cpp -arch x86_64 -fmessage-length=0 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wshorten-64-to-32 -Wno-newline-eof -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -fasm-blocks -Wdeprecated-declarations -mmacosx-version-min=10.6 -g -Wno-sign-conversion -iquote /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/PianoLounge-generated-files.hmap -I/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/PianoLounge-own-target-headers.hmap -I/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/PianoLounge-all-target-headers.hmap -iquote /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/PianoLounge-project-headers.hmap -I/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug/include -I/usr/local/include -I/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/DerivedSources/x86_64 -I/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/DerivedSources -F/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug -MMD -MT dependencies -MF /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/Objects-normal/x86_64/mpih-add1-4D47DD99C77BE382.d --serialize-diagnostics /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/Objects-normal/x86_64/mpih-add1-4D47DD99C77BE382.dia -c /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S -o /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/Objects-normal/x86_64/mpih-add1-4D47DD99C77BE382.o
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:33:16: error: unexpected token in '.set'
.set noreorder
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:34:11: error: unexpected token in '.set'
.set noat
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:38:2: error: unknown directive
.ent _gcry_mpih_add_n
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:40:2: error: unknown directive
.frame $30,0,$26,0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:42:11: error: unexpected token in memory operand
ldq $3,0($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:43:11: error: unexpected token in memory operand
ldq $4,0($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:45:13: error: invalid operand for instruction
subq $19,1,$19
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:46:2: error: unknown use of instruction mnemonic without a size suffix
and $19,4-1,$2 # number of limbs in first loop
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:47:2: error: invalid instruction mnemonic 'bis'
bis $31,$31,$0
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:48:2: error: invalid instruction mnemonic 'beq'
beq $2,.L0 # if multiple of 4 limbs, skip first loop
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:50:11: error: invalid operand for instruction
subq $19,$2,$19
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:52:19: error: invalid operand for instruction
.Loop0: subq $2,1,$2
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:53:11: error: unexpected token in memory operand
ldq $5,8($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:54:10: error: invalid operand for instruction
addq $4,$0,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:55:11: error: unexpected token in memory operand
ldq $6,8($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:56:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:57:10: error: invalid operand for instruction
addq $3,$4,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:58:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$3,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:59:11: error: unexpected token in memory operand
stq $4,0($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:60:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:62:13: error: invalid operand for instruction
addq $17,8,$17
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:63:13: error: invalid operand for instruction
addq $18,8,$18
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:64:2: error: invalid instruction mnemonic 'bis'
bis $5,$5,$3
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:65:2: error: invalid instruction mnemonic 'bis'
bis $6,$6,$4
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:66:13: error: invalid operand for instruction
addq $16,8,$16
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:67:2: error: invalid instruction mnemonic 'bne'
bne $2,.Loop0
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:69:6: error: invalid instruction mnemonic 'beq'
.L0: beq $19,.Lend
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:72:19: error: invalid operand for instruction
.Loop: subq $19,4,$19
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:74:11: error: unexpected token in memory operand
ldq $5,8($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:75:10: error: invalid operand for instruction
addq $4,$0,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:76:11: error: unexpected token in memory operand
ldq $6,8($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:77:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:78:10: error: invalid operand for instruction
addq $3,$4,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:79:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$3,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:80:11: error: unexpected token in memory operand
stq $4,0($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:81:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:83:12: error: unexpected token in memory operand
ldq $3,16($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:84:10: error: invalid operand for instruction
addq $6,$0,$6
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:85:12: error: unexpected token in memory operand
ldq $4,16($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:86:2: error: invalid instruction mnemonic 'cmpult'
cmpult $6,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:87:10: error: invalid operand for instruction
addq $5,$6,$6
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:88:2: error: invalid instruction mnemonic 'cmpult'
cmpult $6,$5,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:89:11: error: unexpected token in memory operand
stq $6,8($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:90:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:92:12: error: unexpected token in memory operand
ldq $5,24($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:93:10: error: invalid operand for instruction
addq $4,$0,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:94:12: error: unexpected token in memory operand
ldq $6,24($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:95:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:96:10: error: invalid operand for instruction
addq $3,$4,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:97:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$3,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:98:12: error: unexpected token in memory operand
stq $4,16($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:99:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:101:12: error: unexpected token in memory operand
ldq $3,32($17)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:102:10: error: invalid operand for instruction
addq $6,$0,$6
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:103:12: error: unexpected token in memory operand
ldq $4,32($18)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:104:2: error: invalid instruction mnemonic 'cmpult'
cmpult $6,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:105:10: error: invalid operand for instruction
addq $5,$6,$6
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:106:2: error: invalid instruction mnemonic 'cmpult'
cmpult $6,$5,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:107:12: error: unexpected token in memory operand
stq $6,24($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:108:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:110:14: error: invalid operand for instruction
addq $17,32,$17
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:111:14: error: invalid operand for instruction
addq $18,32,$18
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:112:14: error: invalid operand for instruction
addq $16,32,$16
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:113:2: error: invalid instruction mnemonic 'bne'
bne $19,.Loop
^~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:115:16: error: invalid operand for instruction
.Lend: addq $4,$0,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:116:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$0,$1
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:117:10: error: invalid operand for instruction
addq $3,$4,$4
^~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:118:2: error: invalid instruction mnemonic 'cmpult'
cmpult $4,$3,$0
^~~~~~
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:119:11: error: unexpected token in memory operand
stq $4,0($16)
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:120:2: error: unknown use of instruction mnemonic without a size suffix
or $0,$1,$0
^
/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/libgcrypt/mpi/alpha/mpih-add1.S:123:2: error: unknown directive
.end _gcry_mpih_add_n
^
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I made sure to only include the needed files (.h and .c) and it cleared up the errors I was receiving, but now I am back to receiving the linker errors.
http://pastebin.com/VM0aBU1m
in the previous question you asked (an hour ago?) you said you copied the whole libgcrypt folder wholesale (i.e. entirely) into your current project. From what I can tell up there, Xcode is spewing errors on a file that ends with the suffix ".S". Xcode doesn't know what to do with them. And I don't know what they are.
Really, all you need is to include into your project are the files from libgcrypt that are appropriate for what you are trying to do.
That likely being... "include" or "import" header files that end with the suffix ".h", the actual ".framework" or ".a" or ".dylib" library files.
That's it.
If my answer doesn't get you to your solution, please edit your question to show a screenshot of what your project looks like in Xcode, and especially how those included files look in the File Inspector.
Wow, I'm an idiot. I don't know why I felt the need to add these libraries in manually. I ended up using MacPorts to get the required libraries and it worked great.

Error building mono in scratchbox [duplicate]

This question already has answers here:
Cross compile mono for arm
(2 answers)
Closed 8 years ago.
I tried to compile mono for arm in scratchbox on Ubuntu 11.10. But when I make install I got an error message.
[sbox-ARMEL:~] ./configure --enable-minimal=profiler,debug,logging,soft_debug --with-tls=--with-tls=__thread --with-monotouch=no --without-mcs-docs --disable-mono-debugger CFLAGS=-DARM_FPU_NONE --disable-mcs-build
[sbox-ARMEL:~] make
[sbox-ARMEL:~] make install
I get this error:
make[2]: Entering directory `/home/johannes/mono-2.10.2/mono/mini'
CC genmdesc-genmdesc.o
In file included from mini.h:39,
from genmdesc.c:9:
mini-unwind.h:106: error: expected declaration specifiers or '...' before 'mgreg_t'
mini-unwind.h:107: error: expected declaration specifiers or '...' before 'mgreg_t'
In file included from genmdesc.c:9:
mini.h:741: error: expected specifier-qualifier-list before 'mgreg_t'
In file included from genmdesc.c:9:
mini.h:1843: error: expected ')' before '*' token
mini.h:1848: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:1923: error: expected ')' before '*' token
mini.h:1924: error: expected ')' before '*' token
mini.h:1925: error: expected ')' before '*' token
mini.h:1926: error: expected ')' before '*' token
mini.h:1928: error: expected ')' before '*' token
mini.h:1930: error: expected ')' before '*' token
mini.h:1931: error: expected ')' before '*' token
mini.h:1932: error: expected ')' before '*' token
mini.h:1933: error: expected ')' before '*' token
mini.h:2061: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2084: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2092: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2093: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2094: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2096: error: expected ')' before '*' token
mini.h:2100: error: expected ')' before '*' token
mini.h:2101: error: expected ')' before '*' token
mini.h:2105: error: expected declaration specifiers or '...' before 'mgreg_t'
mini.h:2138: error: expected ')' before '*' token
mini.h:2148: error: expected declaration specifiers or '...' before 'mgreg_t'
make[2]: *** [genmdesc-genmdesc.o] Error 1
make[2]: Leaving directory `/home/johannes/mono-2.10.2/mono/mini'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/johannes/mono-2.10.2/mono'
make: *** [install-recursive] Error 1
Knows anyone this error or what I have done wrong?
Get source file from Git because your mini.h and mini-unwind.h file doesn't match the Git one.
https://github.com/mono/mono/blob/master/mono/mini/mini.h

Compile Objective-C with GNUstep

I'm a newbie in Objective-C. I'm trying to compile Objective-C with GNUstep but it's giving errors. I tried to both compile on command line (gcc and makefile).
No such file or directory /
excepted '>' before 'GSPredicateBlock'
…
I used the command line
gcc gnustep-config --objc-flags -o hello hello.m -I /GNUstep/System/Library/Headers -L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base -fconstant-string-class=NSConstantString -enable-auto-import
My attempt at using a makefile:
Making all for tool Hello...
Compiling file hello.m ...
hello.m:1:71 fatal error: ../../GNUstep/System/Library/Headers/Foundation/Found ation.h: No such file or directory
compilation terminated.
make[3]: *** [obj/Hello.obj/hello.m.o] Error 1
make[2]: *** [internal-tool-all_] Error 2
make[1]: *** [Hello.all.tool.variables] Error 2
make: *** [internal-all] Error 2
I've searched Google, but I can't find anything that helps. I installed gnustep-msys-system-0.28.0-setup, gnustep-core-0.28.0-setup and gnustep-devel-1.3.0-setup on Windows 7.
I don't know if this is a red herring but I see there's a space in a place where it should not be:
Foundation/Found ation.h
it should read:
#import <Foundation/Foundation.h>
(without the space) in your source code file
Obviously this is what the compiler complains about here:
hello.m:1:71 fatal error: ../../GNUstep/System/Library/Headers/Foundation/Found ation.h: No such file or directory
remove that space in your source code file's import directive and try again.

Compiling Objc Project With Makefile

I'm trying to make crossplatform game and created project(http://cl.ly/5QRn). I'm trying make it but get:
Mark-Fedurins-iMac:Evolve hitecnologys$ make
gcc -g -c -o OSX/AppDelegate.o OSX/AppDelegate.m
gcc -g -c -o OSX/osx.o OSX/osx.m
gcc -g -c -o main.o main.m
In file included from OSX/osx.m:2,
from main.m:6:
OSX/AppDelegate.m: In function ‘main’:
OSX/AppDelegate.m:4: error: expected expression before ‘interface’
In file included from main.m:6:
OSX/osx.m:10: error: expected expression before ‘end’
main.m:8: error: ‘app’ undeclared (first use in this function)
main.m:8: error: (Each undeclared identifier is reported only once
main.m:8: error: for each function it appears in.)
make: *** [main.o] Error 1
What I do wrong? Please answer the stupid idiot what he should do :)
Thx!
First of all - why are you #import'ing .m files? #import is for header (.h) files. Second, this is just a syntax error, nothing to do with the fact you're using a makefile, so your subject line is badly chosen. It's spelled "#interface", not "interface". Likewise, in main.m, you're using a variable named "app" which you haven't declared.
In general, it sounds like you need to read a language tutorial - you can't just make stuff up and expect the compiler to understand it.
http://developer.apple.com/library/mac/#referencelibrary/GettingStarted/Learning_Objective-C_A_Primer/_index.html