Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!portal!cup.portal.com!DavidS From: DavidS@cup.portal.com (David Kenneth Schreiber) Newsgroups: comp.sys.amiga Subject: Re: Problem with lattice. Message-ID: <16318@cup.portal.com> Date: 27 Mar 89 23:43:54 GMT References: <8903271336.AA07363@jade.berkeley.edu> Organization: The Portal System (TM) Lines: 53 In article <8903271336.AA07363@jade.berkeley.edu> CRONEJP@UREGINA1.BITNET (Jonathan Crone) writes: > The following code causes Blink to complain bitterly > with the following errors.... > ""Undefined symbols "" > _CXV45 > _CXS55 > _CXM55 > _CXV54 > _CXD55 > _CXA55 > the compile comand line is ""lc -L random "" > this silly program is supposed to > generate 100 random numbers by the addative congruative method, > and then do a chi squared test. > I'm running Lattice 5.0 (I've got the patches, but the semester > has been a bloody blitz...) > the wierd thing is that the Vax using VMS and a Unix system here > compile the code just fine.... (and of course... run it as well) > any ideas would be appreciated... > /* Duh random number program */ > /* IE: yet another stupid En330 assignment */ > /* This is ugly code, but this is too stupid an assignment to create > good code for... */ > #include > main() > { > int x[102]; > float count[11]; <-------- > int n,i; > float sum=0; <-------- ... > JpC > -------------------------------------------------------------------- > Jonathan P. Crone CRONEJP@UREGINA1.BITNET cronejp@mcl.UUCP > > Heisenberg might have been here... You need to link with the IEEE math library since you're using floating point variables. Try "lc -Lm random" (see p. G16 of the Lattice 5.0 docs). "Amiga users do it in real time" David Schreiber at DavidS@cup.portal.com