[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Objective-C Beginner's Guide [RESOLVED]
From: |
Patrick Cardona |
Subject: |
Re: Objective-C Beginner's Guide [RESOLVED] |
Date: |
Sun, 07 Jun 2020 23:04:24 +0200 |
User-agent: |
GNUMail (Version 1.3.0) |
Hi All,
Behalf the guide from Nicola Pero (Writing GNUstep Makefiles, 2010) and after
more readings about Openstep (f.e. Object-Oriented Programming and the
Objective-C language, NeXT Developper's Library, Don Larkin and Greg
Wilson...), I was able to understand more things.
In the example associated to the tutorial I first read
(http://gnustep.made-it.com/BG-objc/), the 'Object' superclass had to be
rewritten as 'NSObject'.
Also, as some of You suggested, I replaced the first header call '#include
<Objc.h>' by '#import <Fundation/Fundation.h>'.
And then, all was made as expecteed...
pi@raspberrypi:~/Fabrique/Learning/CoursObjectiveC $ make
This is gnustep-make 2.7.0. Type 'make print-gnustep-make-help' for help.
Running in gnustep-make version 2 strict mode.
Making all for tool HelloTest...
Compiling file hello.m ...
Linking tool HelloTest ...
pi@raspberrypi:~/Fabrique/Learning/CoursObjectiveC $ opentool ./obj/HelloTest
Hello, World!
And I could also make the first examples from Nicola Pero's tutorial...
I am very happy...
So I go on reading and learning...
Again, thank You for your help and kind attention.
Regards.
--
Bien cordialement,
Patrick CARDONA
On 2020-05-31 21:52:45 +0200 Patrick Cardona via Discussion list for the
GNUstep programming environment <discuss-gnustep@gnu.org> wrote:
> Hi All experienced Objective-C Dev
>
> I begun this Beginner Guide about Objective C :
>
> http://gnustep.made-it.com/BG-objc/
>
> But my beginning is not glorious...
>
> pi@raspberrypi:~/CoursObjectiveC $ ls
> hello hello.m
> pi@raspberrypi:~/CoursObjectiveC $ gcc -lobjc hello.m -o hello
> hello.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 signature
> hello.m:39:2: warning: will be assumed to return ‘id’ and accept
> hello.m:39:2: warning: ‘...’ as arguments.)
> hello.m:43:2: warning: no ‘-free’ method found
> [myGreeter free];
> ^
> pi@raspberrypi:~/CoursObjectiveC $ ./hello
> Erreur de segmentation
>
> Is this Beginner's Guide up to date ?
>
> Regards
>
- Re: Objective-C Beginner's Guide [RESOLVED],
Patrick Cardona <=
- Documentation format on a GNUstep desktop, Svetlana Tkachenko, 2020/06/08
- Re: Documentation format on a GNUstep desktop, H. Nikolaus Schaller, 2020/06/08
- Re: Documentation format on a GNUstep desktop, Svetlana Tkachenko, 2020/06/08
- Re: Documentation format on a GNUstep desktop, H. Nikolaus Schaller, 2020/06/08
- Re: Documentation format on a GNUstep desktop, Svetlana Tkachenko, 2020/06/08
- Re: Documentation format on a GNUstep desktop, H. Nikolaus Schaller, 2020/06/08
- Re: Documentation format on a GNUstep desktop, Patrick Cardona, 2020/06/08
- Re: Documentation format on a GNUstep desktop, Riccardo Mottola, 2020/06/10
- Re: Documentation format on a GNUstep desktop, Riccardo Mottola, 2020/06/10