🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1542

Re: appkit errors in header files

#1542
From: Daryll J. Strauss
Date: Thu, 12 Nov 1992 01:39
21 lines
1240 bytes
In article <1992Nov11.161902.60706@cc.usu.edu> edx@cc.usu.edu writes:
>
>Has anyone else had trouble with the
>appkit include files that use protocols?
>I've got an application that includes
>/NextDeveloper/Headers/appkit/drag.h and
>it's giving me these errors:
>
>tumbleweed# make tst
>cc   tst.c  -o tst
>/NextDeveloper/Headers/appkit/drag.h:47: illegal keyword selector, missing `)'
>after `id'
> <<< Lots more deleted >>>

The problem is that your filename ends in ".c", not ".m". The compiler
looks at that and says "This is C code, not Objective-C code" and
complains when it hits something that is Objective-C specific.

The two solutions are to either use ".m" as your extension or to compile
with the -ObjC switch. (Which also tells the compiler to treat the file
as Objective-C) Either technique will work.
Technical Details
Message-ID: <1dscjnINNq55@news.aero.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!hela.iti.org!usc!news.aero.org!strauss
References: <1992Nov11.161902.60706@cc.usu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!hela.iti.org!usc!news.aero.org!strauss
From: strauss@aero.org (Daryll J. Strauss)
Newsgroups: comp.sys.next.programmer
Subject: Re: appkit errors in header files
Date: 12 Nov 1992 01:39:03 GMT
Organization: The Aerospace Corporation
Lines: 21
Message-ID: <1dscjnINNq55@news.aero.org>
References: <1992Nov11.161902.60706@cc.usu.edu>
NNTP-Posting-Host: armadillo.aero.org