swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Upgraded to Swarm2.1.1 and compilation problems


From: SCHREIBER,DARREN MATTHEW
Subject: Upgraded to Swarm2.1.1 and compilation problems
Date: Thu, 20 Apr 2000 14:47:23 -0700 (PDT)

I just installed Swarm2.1.1 on a new machine (Pentium 500MHz running Win
98).  Install went well.  But when I brought over the model I have been
running successfully on the other machine I got the follow errors upon
compilation.  Many of these errors were things I had been seeing on the
other machine (running Swarm 2.1), but they did not preclude me from
running the model.

cd c:/Swarm-2.1.1/MyWork/Housing1.0.1/
make -k Housing.exe
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include main.m 
In file included from ObserverSwarm.h:17,
                 from main.m:7:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
make: *** [main.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include ObserverSwarm.m 
In file included from ObserverSwarm.h:17,
                 from ObserverSwarm.m:8:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
make: *** [ObserverSwarm.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include ModelSwarm.m 
In file included from ModelSwarm.m:8:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
ModelSwarm.m: In function `-[ModelSwarm buildObjects]':
ModelSwarm.m:154: `UniformDouble' undeclared (first use in this function)
ModelSwarm.m:154: (Each undeclared identifier is reported only once
ModelSwarm.m:154: for each function it appears in.)
ModelSwarm.m:155: `UniformInteger' undeclared (first use in this function)
ModelSwarm.m: In function `-[ModelSwarm createPerson]':
ModelSwarm.m:375: warning: control reaches end of non-void function
ModelSwarm.m: In function `-[ModelSwarm getDissimilarity]':
ModelSwarm.m:421: warning: suggest parentheses around assignment used as
truth value
ModelSwarm.m:430: warning: suggest parentheses around assignment used as
truth value
ModelSwarm.m:408: warning: unused variable `i'
make: *** [ModelSwarm.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include SchellingWorld.m 
In file included from Person.h:18,
                 from EmptySpace.h:5,
                 from SchellingWorld.h:9,
                 from SchellingWorld.m:8:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
make: *** [SchellingWorld.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include Person.m 
In file included from Person.h:18,
                 from Person.m:9:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
Person.m: In function `-[Person step]':
Person.m:82: warning: unused variable `listLength'
Person.m:81: warning: unused variable `s'
make: *** [Person.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include Neighborhood.m 
In file included from Person.h:18,
                 from Neighborhood.m:9:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
Neighborhood.m: In function `-[Neighborhood getHousingCost]':
Neighborhood.m:76: warning: unused variable `numberBlue'
Neighborhood.m:76: warning: unused variable `numberRed'
Neighborhood.m:75: warning: unused variable `tractList'
Neighborhood.m:75: warning: unused variable `myTract'
Neighborhood.m:74: warning: unused variable `i'
Neighborhood.m:73: warning: unused variable `numberTracts'
Neighborhood.m:72: warning: unused variable `tractSize'
make: *** [Neighborhood.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include Shuffler.m 
In file included from Shuffler.m:14:
Shuffler.h:16: Cannot find protocol declaration for `UniformInteger'
make: *** [Shuffler.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include Tract.m 
In file included from Person.h:18,
                 from Tract.h:8,
                 from Tract.m:5:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
make: *** [Tract.o] Error 1
gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Wno-error
-DAPPNAME=Housing   -DDLL  -I/Swarm-2.1.1/include EmptySpace.m 
In file included from Person.h:18,
                 from EmptySpace.h:5,
                 from EmptySpace.m:5:
ModelSwarm.h:46: Cannot find protocol declaration for `UniformDouble'
ModelSwarm.h:47: Cannot find protocol declaration for `UniformInteger'
make: *** [EmptySpace.o] Error 1
make: Target `Housing.exe' not remade because of errors.

Compilation exited abnormally with code 2 at Thu Apr 20 14:34:11


It looks like all the problems that preclude compilation are coming from
the protocol problems with UniformDouble and UniformInteger.  But, I
haven't changed anything with the code.

        Darren



                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]