Article View: gnu.gcc.help
Article #52294gcc on NeXTSTEP 3.0
From: Darcy BROCKBANK
Date: Sat, 28 Nov 1992 16:41
Date: Sat, 28 Nov 1992 16:41
64 lines
2257 bytes
2257 bytes
I've compiled gcc 2.3.1 on NeXTSTEP 3.0, but I have a couple of
compatibility problems with NeXT's extensions to Objective-C.
I've noticed that gcc has been updated to search 3.0's new
include directories, so someone did some work to bring it up
to date, but there isn't any handling of compiler directives
such as:
@private
@class
@protocol
THe compiler rejects those constructs with errors like:
In file included from /NextDeveloper/Headers/appkit/appkit.h:21, from
AppDelegate.h:2, from AppDelegate.m:2:
/NextDeveloper/Headers/objc/NXBundle.h:13: invalid Objective C keyword
`@private'
/NextDeveloper/Headers/objc/NXBundle.h:13: parse error before `@private'
And I can only find these keywords in the source:
int
recognize_objc_keyword (string)
char *string;
{
switch (string[0])
{
case 'd':
if (!strcmp (string, "defs"))
return DEFS;
break;
case 'e':
if (!strcmp (string, "end"))
return END;
if (!strcmp (string, "encode"))
return ENCODE;
break;
case 'i':
if (!strcmp (string, "interface"))
return INTERFACE;
if (!strcmp (string, "implementation"))
return IMPLEMENTATION;
break;
case 'p':
if (!strcmp (string, "public"))
return PUBLIC;
break;
case 's':
if (!strcmp (string, "selector"))
return SELECTOR;
break;
}
return 0;
}
Is gcc 2.3.1 going to be updated soon so that it can be used on
the NeXT to compile Objective-C?
Any help/advice/comments are greatly appreciated.
- darcy
Technical Details
Message-ID:
<1992Nov28.164127.21046@cs.mcgill.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!samuraiReferences:
<1992Nov25.155539.4490@bmerh85.bnr.ca> <1992Nov25.174429.1855@polaris.utu.fi>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2b3704431d0a7d01 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-11-28 08:50:56 PST Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!charnel!sifon!homer.cs.mcgill.ca!samurai From: samurai@cs.mcgill.ca (Darcy BROCKBANK) Newsgroups: gnu.gcc.help Subject: gcc on NeXTSTEP 3.0 Message-ID: <1992Nov28.164127.21046@cs.mcgill.ca> Date: 28 Nov 92 16:41:27 GMT References: <1992Nov25.155539.4490@bmerh85.bnr.ca> <1992Nov25.174429.1855@polaris.utu.fi> Sender: news@cs.mcgill.ca (Netnews Administrator) Organization: SOCS - Mcgill University, Montreal, Canada Lines: 64