Hey guys!
I've been having some trouble setting up the accelerometer to compile with the open toolchain. I'm quite new to ObjC but I'd really like to see the sample accelerometer graph compiled through the toolchain.
I've setup my makefile properly (a hello world program worked with it) but I'm getting errors like the following:
Code:
Classes/AppDelegate.m:6: error: no declaration of property 'window' found in the interface
Classes/AppDelegate.m:6: error: no declaration of property 'viewController' found in the interface
Classes/AppDelegate.m: In function '-[AppDelegate applicationDidFinishLaunching:]':
Classes/AppDelegate.m:11: error: request for member 'window' in something not a structure or union
Classes/AppDelegate.m:14: error: 'viewController' undeclared (first use in this function)
Classes/AppDelegate.m:14: error: (Each undeclared identifier is reported only once
Classes/AppDelegate.m:14: error: for each function it appears in.)
Classes/AppDelegate.m:14: error: 'aViewController' undeclared (first use in this function)
Classes/AppDelegate.m:15: error: request for member 'viewController' in something not a structure or union
Classes/AppDelegate.m:22: error: 'window' undeclared (first use in this function)
Classes/AppDelegate.m: In function '-[AppDelegate dealloc]':
Classes/AppDelegate.m:28: error: 'window' undeclared (first use in this function)
Classes/AppDelegate.m:29: error: 'viewController' undeclared (first use in this function)
Classes/AppDelegate.m:30: error: no super class declared in @interface for 'AppDelegate'
make: *** [Classes/AppDelegate.o] Error 1
It seems to me like there might be some kind of error with my headers, but I just extracted them from the 3.1 SDK from apple and a hello world program worked.
Does anyone know what I've done wrong, or would they even be willing to go so far as fixing and posting the code themselves?
I'm running the toolchain on the iphone itself.
Thank you very much!