[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Have you ever seen a compiler error message like this?
From: |
Scott Christley |
Subject: |
Re: Have you ever seen a compiler error message like this? |
Date: |
Thu, 6 Nov 1997 11:17:49 -0800 |
At 12:01 AM 11/6/97 -0600, Paul Johnson wrote:
> ModelSwarm.o: In function `_c_ModelSwarm__createBegin_':
>/swarm/swarmapps/majority03/ModelSwarm.m:18: undefined reference to
>`__objc_class_name_Setter'
>make: *** [Voter] Error 1
This is not a compiler error, in actuality it is a linker error. Your code
is compiling fine; the problem is that the linker cannot find the object
code for the Setter class.
When you reference a class
Setter *aSetter;
Then there must be an @implementation of Setter which gets compiled and
linked in with your program.
Essentially the linker is saying "hey you say there is this Setter class but
I cannot find its implementation!"
Check to see that your Setter.m file is correct, is being compiled, and is
being linked with the rest of your program.
Scott
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Re: Have you ever seen a compiler error message like this?,
Scott Christley <=