discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with my first app


From: Pascal Bourguignon
Subject: Re: Problem with my first app
Date: Sat, 13 Oct 2001 20:39:55 +0200 (CEST)

> Date: Sat, 13 Oct 2001 14:34:48 -0400
> From: PERON =?iso-8859-1?Q?St=E9phane?= <speron@telys.com>
> 
> 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 :
> 
> 
> 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'

Objective-C  sources should have  .m as  extension. Rename  Encod.c to
Encod.m to let  the compiler driver gcc know  that it's an Objective-C
source and invoke the Objective-C compiler.

I believe that  on NeXT, the compiler driver always  assued to have an
Objective-C source. 

> /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>

-- 
__Pascal_Bourguignon__              (o_ Software patents are endangering
()  ASCII ribbon against html email //\ the computer industry all around
/\  and Microsoft attachments.      V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100  2001:my($f)=`fortune`;  http://petition.eurolinux.org/

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++  UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]