I think this is a better intro guide:
As for why your code isn’t compiling, tough to say without seeing hello.m, but couple thoughts: did you include
#import <Object.h>
And in your interface declaration, did you include the “ : Object” at the end: e.g.
@interface Greeter : Object
I haven’t used Object.h (I use Foundation.h as in the example I included). GNUStep objects are typically instantiated with [[obj alloc] init] rather than [obj new]
Sent from my iPhone
On May 31, 2020, at 2:53 PM, Patrick Cardona via Discussion list for the GNUstep programming environment <discuss-gnustep@gnu.org> wrote:
Hi All experienced Objective-C DevI begun this Beginner Guide about Objective C :http://gnustep.made-it.com/BG-objc/But my beginning is not glorious...pi@raspberrypi:~/CoursObjectiveC $ lshello hello.mpi@raspberrypi:~/CoursObjectiveC $ gcc -lobjc hello.m -o hellohello.m: In function ‘main’:hello.m:39:2: warning: ‘Greeter’ may not respond to ‘+new’ myGreeter=[Greeter new]; ^~~~~~~~~hello.m:39:2: warning: (Messages without a matching method signaturehello.m:39:2: warning: will be assumed to return ‘id’ and accepthello.m:39:2: warning: ‘...’ as arguments.)hello.m:43:2: warning: no ‘-free’ method found [myGreeter free]; ^pi@raspberrypi:~/CoursObjectiveC $ ./helloErreur de segmentationIs this Beginner's Guide up to date ?Regards-- Bien cordialement,Patrick CARDONA