[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Q]Swarm tutorial, random number generator
From: |
Stacy Oerder |
Subject: |
RE: [Q]Swarm tutorial, random number generator |
Date: |
Fri, 15 Mar 2002 09:48:30 +0200 |
I checked my code for Bug.m and yes I was missing the random.h import
and now the error has gone, thanks, I'll check my version of the
swarmapps as well.
Stacy Oerder
Rand Afrikaans University
South Africa
-----Original Message-----
From: Paul Johnson [mailto:address@hidden
Sent: 14 March 2002 04:09
To: address@hidden
Subject: Re: [Q]Swarm tutorial, random number generator
Stacy Oerder wrote:
> Hi
>
> I'm a very new user on Swarm and am currently working through the
> tutorial written by Chris Langton in order to get used the language
that
> is Swarm.
>
> I'm working on Windows 98 with the 2.1.1 version of Swarm and have run
> in to some compiling errors with the program simpleSwarmBug with
regards
> to the Random Number Generator and thus the program will not run. Upon
> running the makefile I obtain the following error messages:
>
> address@hidden $ make
> gcc -c -g -O2 -Wall -Wno-import -Wno-protocol -Werror -DAPPNAME=bug
> -DDLL -
> I/Swarm-2.1.1/include Bug.m
> Bug.m: In function `-[Bug step]':
> Bug.m:33: `uniformIntRand' undeclared (first use in this function)
I wonder if you have a version of swarmapps that is not current. I'm
testing swarmapps-2.1.1 and in the top of Bug.m I see:
// Bug.m SimpleBug
#import "Bug.h"
#import "FoodSpace.h"
#import <random.h>
If I comment out the random.h include, I can reproduce your error.
Could you check and see?
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ku.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
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.
==================================
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.