Compile Errors
by Eric Smith · in iTorque 2D · 07/24/2010 (9:45 pm) · 0 replies
I've just upgraded to iTGB 1.4, iOS 4.0, iPhone SDK 4.0, XCode 3.2.3 and OSX 10.6.3. I have my targets set for Base SDK 4.0, GCC 4.0 and Deployment target as iPhone OS 3.2. I'm still getting compile errors and I can't see why. Anybody else see this? Have a solution? Missing something? Any help would be very appreciated.
SOLUTION:
Use GCC 4.2 instead of GCC 4.0
Add #include <unistd.h> to iPhoneTime.mm
SOLUTION:
Use GCC 4.2 instead of GCC 4.0
Add #include <unistd.h> to iPhoneTime.mm
/Developer/Headers/FlatCarbon/MacTypes.h:1:39: error: CoreServices/CoreServices.h: No such file or directory /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h:182: error: 'CFHostClientCallBack' has not been declared /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h:182: error: 'CALLBACK_API_C' declared as function returning a function /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h:182: error: '<anonymous>' has incomplete type /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h:182: error: invalid use of 'void' /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h:182: confused by earlier errors, bailing out
About the author
http://ca.linkedin.com/pub/eric-smith/2/56/a51