Hello Group
I have found a couple of threads in the archive describing this
problem, but none that seem to give a solution.
I have a program that's been running fine, but has recently started
showing errors listed below on compilation. This seems to be a fairly
simple Objective-C issue, but I have been staring at the relevant
files for a couple of days and am stumped as to what's causing the
problem. Any suggestions would be welcome.
Here's what I believe are the relevant files:
---------------------------------------------------
console output
---------------------------------------------------
address@hidden 190304]$ make
gcc -c -g -O2 -g -march=i386 -mcpu=i686 -fgnu-runtime
-fno-strict-aliasing -Wall -Wno-import -Wno-protocol -Wno-long-long
-Wno-error -D_GNU_SOURCE -DAPPNAME=biox -I/usr/include/swarm
CARunner.m
In file included from ModelSwarm.h:15,
from CellSurface.h:15,
from CARunner.h:69,
from CARunner.m:19:
Shrimp.h:22: cannot find interface declaration for `CARunner',
superclass of `Shrimp'
make: *** [CARunner.o] Error 1
The files mentioned are:
---------------------------------------------------
Shrimp.h
---------------------------------------------------
#import "CARunner.h"
@interface Shrimp: CARunner
{
id modelSwarm;
id cellSurface;
Color myColor;
id limboList;
int size; // size of the shrimp
int age; // how old is this shrimp?
}
....
@end
---------------------------------------------------
CARunner.h
---------------------------------------------------
#import <objectbase.h>
#import <objectbase/SwarmObject.h>
#import "CellSurface.h"
// #import "neighbor.h"
#import "Eneighbor.h"
@interface CARunner: SwarmObject
{
id world;
BOOL embedded; // if YES, then agent is currently embedded in world;
// if NO, agent is currently warped to
// "hyperspace"...
id myCell; // what cell am I occupying?
int x, y;
Eneighbor * eNeighbor;
}
...
@end
////////////////////////////////////////
// Paul Box
// Aquatic, Watershed, and Earth Resources
// Utah State University
_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support