Article View: gnu.gcc.help
Article #52180Re: Help with Objective C compile
From: I Stephenson
Date: Fri, 15 Jan 1993 15:37
Date: Fri, 15 Jan 1993 15:37
27 lines
1582 bytes
1582 bytes
In article <1993Jan13.171735.62692@cc.usu.edu> edx@cc.usu.edu writes: > I've built the gcc2.3.3 compiler > on our SGI Indigo. When I attempt > to compile an small Objective-C test > program, I'm linker errors: > > ld: > Error: Undefind: > objc_getClass > objc_msgSend > __objc_execClass > __objc_class_name_Object > collect: /usr/bin/ld returned 1 exit status > *** Error code 1 > > I'm already linking to the libgcc.a and the > libobjc.a libraries... So what other libs should > I be linking to? > I've just been building this on a mips R3000, and can tell you that the files taht you list ARE in libobjc.a. You're problem is that you've probably placed the "-lobjc" BEFORE any objectective C code, and hence the stuff doesn;t get included (the linker can't find refs to it so skips the files). Make sure that the library is the last thing on the line. Ian Stephenson ian@ohm.york.ac.uk
Technical Details
Message-ID:
<1993Jan15.153716.16316@ohm.york.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!doc.ic.ac.uk!uknet!yorkohm!ianReferences:
<1993Jan13.171735.62692@cc.usu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,27ad5f5353df3e40 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-15 07:37:16 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!doc.ic.ac.uk!uknet!yorkohm!ian From: ian@ohm.york.ac.uk (I Stephenson) Newsgroups: gnu.gcc.help Subject: Re: Help with Objective C compile Message-ID: <1993Jan15.153716.16316@ohm.york.ac.uk> Date: 15 Jan 93 15:37:16 GMT References: <1993Jan13.171735.62692@cc.usu.edu> Sender: ian@ohm.york.ac.uk (I Stephenson) Reply-To: ian@ohm.york.ac.uk Organization: Electronics Department, University of York, UK Lines: 27