Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!ukc!axion!lion!rwhelan From: rwhelan@lion.axion.bt.co.uk (richard whelan) Newsgroups: comp.windows.x Subject: Compiling error on Dragon Message-ID: <1533@zaphod.axion.bt.co.uk> Date: 10 May 89 11:34:02 GMT Sender: news@axion.bt.co.uk Reply-To: rwhelan@axion.bt.co.uk Lines: 32 Organisation: British Telecom Research Labs, Martlesham Heath, IPSWICH UK 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." ------------------------------------------------------------------------------