Article View: gnu.gcc.help
Article #50073Please help w/ gcc and objective-c
From: Charles D. Kincaid
Date: Sat, 20 Nov 1993 15:36
Date: Sat, 20 Nov 1993 15:36
51 lines
2771 bytes
2771 bytes
Hello,
I am trying to get the S[ia]mple program from the
comp.lang.objective-c faq to compile under gcc 2.4 on a Sun sparc 10 (I'm
not sure if it's running SunOS or Solaris. I can find out if it's
important.) I have a NeXT and the program compiles with no problems
there. It Just Works(tm). :-)
However, when I compile on the sun I get a number of bizarre
things. I use
gcc -x objective-c -Wall -O2 -o main.o -c main.m
(or real close to that).
First, it complains about the #import directive. Why? I understand the
rational behind what it's saying, but I figure it'd just take it, since
that's a standard part of Objective-C.
Then it gives me a bunch of warnings about instance variables being
accessed in class method. I don't know a whole lot about Objective-C so I
could easily be missing something here, but I sure don't think so. After
all, I didn't write the code.
Then, it complains that printf is implicitly declared. stdio.h is
#imported. Could the complaint about #imports be causing this problem?
Then, it gives me a _whole_ bunch of messages about unterminated string or
character constant in all of the .o files. Invalid identifier `@` in
Stack and unknown escape sequences `\` in Float.o.
Does any of this sound familiar? I _think_ all of the libraries
and include files are connected, but I'm not sure. Any help is greatly
appreciated.
---
Sincerely,
charles d. kincaid
--------------------------------------------------------------------
Dept. of Statistics 'Damn fine coffee...and hot, too!'
Univ. of Florida Pres: G-ville NeXT Users Group
statman@stat.ufl.edu *****NeXTMail preferred******
(904) 392-1941x206 The Statistical Janitor
--------------------------------------------------------------------
'I just saw Regis Filbin out on the side of the street... is that
anything?'
-- Car Phone Night with David Letterman
--------------------------------------------------------------------
Technical Details
Message-ID:
<2cldh4INNn7j@no-names.nerdc.ufl.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!caen!usenet.cis.ufl.edu!usenet.ufl.edu!usenet.ufl.edu!usenetShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,d95615e40fd32835,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-20 07:48:04 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!sol.ctr.columbia.edu!caen!usenet.cis.ufl.edu!usenet.ufl.edu!usenet.ufl.edu!usenet From: statman@stat.ufl.edu (Charles D. Kincaid) Newsgroups: gnu.gcc.help Subject: Please help w/ gcc and objective-c Date: 20 Nov 1993 15:36:04 GMT Organization: University of Florida Lines: 51 Distribution: world Message-ID: <2cldh4INNn7j@no-names.nerdc.ufl.edu> Reply-To: statman@stat.ufl.edu NNTP-Posting-Host: jackcraval.stat.ufl.edu