[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Foundation.h help
From: |
Lars Sonchocky-Helldorf |
Subject: |
Re: Foundation.h help |
Date: |
Wed, 1 Dec 2010 00:43:23 +0100 |
Am 30.11.2010 um 16:06 schrieb Chris Williams:
thanks everyone, the error's have been cleared, i fixed all the
typo errors. Now I am very new to Objective-C and GNUstep. How
exactly to i get the program to run to see the output message?
I was under the impression that when i typed 'make', it would run
the program,
compiler, make and Co are there to build the program from source
code, not to run it.
You would run your program when you enter:
./prog1
be sure that prog1 is executable (do a "chmod 755 prog1" if not)
but i get ....
This is gnu-step-make 2.4.0.....yada yada yada
Making all for tool prog1...
compiling file prog1.m...
Linking tool prog1...
then a new line is made for me to enter a command.
i tried the orignal gcc -o prog1 prog1.m but i get all the original
errors.
thanks again everyone,
chris
cheers,
Lars
----- Original Message -----
From: "Lars Sonchocky-Helldorf" <lars.sonchocky-helldorf@hamburg.de>
To: "Nicola Pero" <nicola.pero@meta-innovation.com>
Cc: cbw2005@comcast.net, discuss-gnustep@gnu.org
Sent: Monday, November 29, 2010 1:20:31 PM
Subject: Re: Foundation.h help
And the other typo is that when defining it you wrote 'Pool' (upper
case P) while when using it you wrote 'pool' (lower case p). Since C
and so ObjC is case sensitive this difference matters and causes the
messages about:
prog1.m:8: error: 'pool' undeclared (first use in this function)
cheers,
Lars
Am 29.11.2010 um 16:42 schrieb Nicola Pero:
>
>> NSAutoreleasePool * Pool = [NSAutoreleasePool alloc] init];
>
> There's a typo ... that line should be
>
>> NSAutoreleasePool * Pool = [[NSAutoreleasePool alloc] init];
>
> Thanks
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/discuss-gnustep
- Re: Foundation.h help, (continued)
- Re: Foundation.h help, Tim Kack, 2010/11/29
- Re: Foundation.h help, Richard Frith-Macdonald, 2010/11/29
- Re: Foundation.h help, David Chisnall, 2010/11/29
- Re: Foundation.h help, cbw2005, 2010/11/29
- Re: Foundation.h help, Nicola Pero, 2010/11/29
- Re: Foundation.h help, Chris Williams, 2010/11/30
- Re: Foundation.h help,
Lars Sonchocky-Helldorf <=