[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with my first app
From: |
PERON Stéphane |
Subject: |
Problem with my first app |
Date: |
Sat, 13 Oct 2001 10:49:19 -0400 |
User-agent: |
Mutt/1.3.18i |
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 <AppKit/AppKit.h>
@interface MyDelegate : NSObject
- (void) applicationWillFinishLaunching: (NSNotification *)not;
@end
@implementation MyDelegate
- (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);
}
When I compile, I have the following error message :
[stephane@boa Encod.app]$ make
Making all for app Encod...
gcc Encod.c -c -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -DGSWARN -O2
-fgnu-runtime -I. -I/opt/GNUstep/System/Headers -fgnu-runtime
-I/opt/GNUstep/System/Headers -I/home/stephane/GNUstep/Library/Headers
-I/opt/GNUstep/Local/Library/Headers -I/opt/GNUstep/Network/Library/Headers
-I/opt/GNUstep/System/Library/Headers -I/opt/GNUstep/Network/Headers/gnustep
-I/home/stephane/GNUstep/Headers/gnustep -I/opt/GNUstep/Local/Headers/gnustep
-I/opt/GNUstep/System/Headers/gnustep
-I/opt/GNUstep/Network/Headers/ix86/linux-gnu
-I/home/stephane/GNUstep/Headers/ix86/linux-gnu
-I/opt/GNUstep/Local/Headers/ix86/linux-gnu
-I/opt/GNUstep/System/Headers/ix86/linux-gnu -I/home/stephane/GNUstep/Headers
-I/opt/GNUstep/Local/Headers -I/opt/GNUstep/Network/Headers
-I/opt/GNUstep/System/Headers -o shared_obj/ix86/linux-gnu/gnu-gnu-gnu/Encod.o
Encod.c:1:33: Fondation/Fondation.h: Aucun fichier ou répertoire de ce type
In file included from /opt/GNUstep/System/Headers/Foundation/Foundation.h:74,
from /opt/GNUstep/System/Headers/AppKit/AppKit.h:36,
from Encod.c:2:
/opt/GNUstep/System/Headers/Foundation/NSProtocolChecker.h:27:2: warning:
#import is obsolete, use an #ifndef wrapper in the header file
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
So, do I have made a mistake ?
Thanks all
Bye
--
*****************
Stéphane PERON
speron@telys.com
*****************
- Problem with my first app,
PERON Stéphane <=
- Re: Problem with my first app, Jeff Teunissen, 2001/10/13
- 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