Re: Framework causing a problem
Re: Framework causing a problem
- Subject: Re: Framework causing a problem
- From: Sailor Quasar <email@hidden>
- Date: Sat, 14 Feb 2004 04:35:38 -0500
On Feb 14, 2004, at 3:44 AM, email@hidden wrote:
I have been adding routines to an existing source code and needed to
use
NSObjects so I did a #import <Foundation/NSObject.h> and this gives me
errors like
/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:7:
undefined
type, found `@class'
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:8
undefined type, found `@class'
/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:13:
undefined type, found `@protocol'
I contacted Apple about this but they claim the problem is not with the
framework and no updated framework is available and I should not have
these errors
but so far, all I am doing is "#import <Foundation/NSObject.h>" which
shouldn't cause a problem.
Has anyone else experienced this problem? Is there a solution?
OSX 10.2.8/GCC 3.1/1ghzDP MDD G4
I can't speak with certainty, but it looks like GCC isn't in
Objective-C mode for the compilation. The file that's #importing most
likely has a .c extension. Either give the file a .m extension, or add
"-x objective-c" to the file-specific build flags for the file. I
strongly recommend the former.
-- Sailor Quasar, guardian of Leraz's memory
"A face of stone may hide a soul with the deepest Love of all"
Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.