[comp.windows.x] Compiling error on Dragon

rwhelan@lion.axion.bt.co.uk (richard whelan) (05/10/89)

Can somebody help please.

In trying to compile dragon i've come to a problem. When linking I get an 
error saying that `initstate' is an undefined external. This statement 
only occurs in board.c as follows :-

/*--Set up the random number generator. */

    {   extern char *initstate();
        static char     data[32];
#if 0
        (void)initstate( (unsigned)time((long*)0), &data[0], sizeof(data) );
#endif
        (void)initstate( 123456, &data[0], sizeof(data) );
    }

Not actually being fluent in `C' i'm not entirely sure, but shouldn't there 
be another procedure defining initstate. If so where is it because I haven't 
got it.

Thanks in advance.

				Richard Whelan

------------------------------------------------------------------------------
vax to vax (UUCP)     RWhelan@axion.bt.co.uk (...!ukc!btnix!rwhelan)
paper to paper        RT3124, 307 SSTF, British Telecom Research Laboratories,
		      Martlesham Heath, IPSWICH, IP5 7RE, UK.
voice to voice        +44 473 645099

      "Never trust a man with short legs - brains too near their bottoms."
------------------------------------------------------------------------------