[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with my first app
From: |
PERON Stéphane |
Subject: |
Re: Problem with my first app |
Date: |
Sat, 13 Oct 2001 14:34:48 -0400 |
User-agent: |
Mutt/1.3.18i |
Ok, ok ... I have made a mistake (amaising that the compilator does not
say the include file "Fondation.h" does't not exist like it would have done in
pure C ..well, I think so :) )
Well I have corrected the code which is below and I always meet a
problem at compilation :
#include <Foundation/Foundation.h>
#include <AppKit/AppKit.h>
@interface MyDelegate : NSObject
- (void) applicationWillFinishLaunching: (NSNotification *)not;
@end
@implementation MyDelegate : NSObject
- (void) applicationWillFinishLaunching: (NSNotification *)not
{
NSMenu *menu;
menu = AUTORELEASE ([NSMenu New]);
[menu addItemWithTitle: @"Quit"
action: @selector (terminate:)
keyEquivalent: @"q"];
[NSApp setMainMenu : menu];
}
@end
int main(int argc, const char **argv)
{
[NSApplication sharedApplication];
[NSApp setDelegate: [MyDelegate new]];
return NSApplicationMain (argc, argv);
}
Result at compilation :
/opt/GNUstep/System/Headers/AppKit/NSWorkspace.h:201: warning: data
definition has no type or storage class
Encod.c:4: parse error before `@'
Encod.c:12: conflicting types for `menu'
/opt/GNUstep/System/Headers/AppKit/NSMenu.h:198: previous declaration of
`menu'
Encod.c:12: parse error before `['
/opt/GNUstep/System/Headers/gnustep/base/o_map.h:89: storage size of
`extra_callbacks' isn't known
/opt/GNUstep/System/Headers/gnustep/base/o_hash.h:90: storage size of
`callbacks' isn't known
/opt/GNUstep/System/Headers/gnustep/base/o_map.h:92: storage size of
`key_callbacks' isn't known
/opt/GNUstep/System/Headers/gnustep/base/o_map.h:93: storage size of
`value_callbacks' isn't known
/opt/GNUstep/System/Headers/Foundation/NSThread.h:52: storage size of
`_autorelease_vars' isn't known
make[2]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu/Encod.o] Erreur 1
make[1]: *** [Encod.build] Erreur 2
make: *** [Encod.all.app.variables] Erreur 2
Well, not very clear for me :-) ............ Any Idea ?
Many thanks
On 13/10/2001, Jeff Teunissen wrote:
> PERON Stéphane wrote:
> >
> > Hi all,
> >
> > I'm trying to make a first app with GNUSTEP.
> >
> > For help, I use the manual "First Steps in GNUSTEP Gui Programming"
> > from
> > Nicola Pero.
> >
> > I have been trying to compile the Firstapp given as example :
> >
> > #include <Fondation/Fondation.h>
>
> #include <Foundation/Foundation.h>
>
> --
> | Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
> | GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
> | Core developer, The QuakeForge Project http://www.quakeforge.net/
> | Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
--
*****************
Stéphane PERON
speron@telys.com
*****************
- Problem with my first app, PERON Stéphane, 2001/10/13
- Re: Problem with my first app, Jeff Teunissen, 2001/10/13
- Re: Problem with my first app,
PERON Stéphane <=
- Re: Problem with my first app, Pascal Bourguignon, 2001/10/13
- Re: Problem with my first app, Philippe C.D. Robert, 2001/10/14
- Re: Problem with my first app, Richard Frith-Macdonald, 2001/10/14
- import/include philosophical Was: Problem with my first app, Pascal Bourguignon, 2001/10/14
- Re: Problem with my first app, Philippe C.D. Robert, 2001/10/14
- Re: Problem with my first app, Pascal Bourguignon, 2001/10/14
- Re: Problem with my first app, Nicola Pero, 2001/10/14