discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to learn ObjC


From: Matt Rice
Subject: Re: Trying to learn ObjC
Date: Fri, 10 Nov 2006 19:34:19 -0800 (PST)


--- Stefan Bidigaray <stefanbidi@gmail.com> wrote:

> I've read a few online documentation on ObjC (mainly
> Apple's) and I feel I'm
> ready to start understand Yen-Ju's GSTutorial.  The
> problem is that I went
> through his HelloWorld program and I'm getting this
> error:
> 
> ===Start===
>  Compiling file main.m ...
> In file included from
>
/usr/GNUstep/System/Library/Headers/Foundation/NSDebug.h:211,
>                  from
>
/usr/GNUstep/System/Library/Headers/Foundation/Foundation.h:32,
>                  from main.m:2:
>
/usr/GNUstep/System/Library/Headers/Foundation/NSProcessInfo.h:32:
> error:
> syntax error before 'CPP_AT_NAME' token
>
/usr/GNUstep/System/Library/Headers/Foundation/NSProcessInfo.h:61:
> error:
> syntax error before 'CPP_AT_NAME' token
>
/usr/GNUstep/System/Library/Headers/Foundation/NSProcessInfo.h:83:
> error:
> cannot find interface declaration for
> `NSProcessInfo'
> ===End===
> 
> This is using -base version 1.13.0!  Can anyone let
> me know what I'm doing
> wrong (chances are it's me, not Yen-Ju's code)?
> 

oops.. forgot to cc the list..


which version of the compiler are you using

http://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg106167.html

you can also get this error from a missing @end

for instance

@interface Foo : NSObject
....


@interface Bar 

@end


maybe say.h is missing the @end?



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]