> Hi,
> I want to use the gcc 3.0.2 to compile the objective c code.
> But the compile does not think following code is correct:
> 
> @class NSCell <NSCopying, NSCoding>;
> @class NSFont <NSCopying, NSCoding>;
> 
> The error message is 
> ClassA.m:2: parse error before '<' token
> 
> But this code is used in openstep, what's wrong?

You should use 

@class NSCell;
@class NSFont;

specifying a protocol here has no utility (and it's forbidden by the
Objective-C syntax).


_______________________________________________
Help-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-gnustep

Reply via email to