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 <[email protected]> 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
>


    • ... Patrick Cardona via Discussion list for the GNUstep programming environment
      • ... Svetlana Tkachenko
        • ... Umberto Cerrato
          • ... Svetlana Tkachenko
            • ... Umberto Cerrato
              • ... Umberto Cerrato
              • ... Svetlana Tkachenko
          • ... Patrick Cardona via Discussion list for the GNUstep programming environment
            • ... Umberto Cerrato
              • ... David Chisnall
  • ... Patrick Cardona via Discussion list for the GNUstep programming environment
    • ... Svetlana Tkachenko
      • ... H. Nikolaus Schaller
        • ... Svetlana Tkachenko
          • ... H. Nikolaus Schaller
            • ... Svetlana Tkachenko
              • ... H. Nikolaus Schaller
              • ... Patrick Cardona via Discussion list for the GNUstep programming environment
              • ... Riccardo Mottola
            • ... Riccardo Mottola

Reply via email to