[comp.sources.games.bugs] Galactic Bloodshed problems

daye@jacobs.cs.orst.edu (Garion) (08/10/90)

Problem:
  I compile everything with gcc.  It works fine.  It goes to put all the *.o
  files into GB_server, GB_enroll, etc. and says: Undefined - log1p
  I recall an article a while back about this...what do I do, how do I do it?
  I'm running on a BSD 4.3 (probably a little tweaked) system.  The client
  compilied fine though....too bad I don't have the server set up...:(
  Thanks.....
---------
|  Internet-----           | Quote of the Month: AUGUST                        |
|__daye@nyssa.cs.orst.edu__|  "What weighs 95 tons, can run almost 100 km/h    |
| Battletech Technical -----> can jump 120 m, and carries a gauss cannon?"     |
|   Readout:  3050     -----> "I don't know, but I'm getting out of here!"     |

v056ped5@ubvmsd.cc.buffalo.edu (Brian M McNamara) (08/11/90)

Try downloading the server file again. It was reposted on August 8th,
and the new version is supposed to have all the log1p problems fixed.

Brian

varneyml@clutx.clarkson.edu (Mike Varney,303 Wilson,5183551510,3152682130) (08/16/90)

From article <32547@eerie.acsu.Buffalo.EDU>, by v056ped5@ubvmsd.cc.buffalo.edu (Brian M McNamara):
> Try downloading the server file again. It was reposted on August 8th,
> and the new version is supposed to have all the log1p problems fixed.
> 
> Brian

This wasn't changed in the latest posting.  There are 2 ways to take care of
this problem.

"log1p(x)" is equal to "log(1+x)".  You can just go through all the servers
that have that function in it ("grep log1p *.c") and change them all,
or you can add this function to "vars.h":


---------------------->8-->8---*Snip* *Snip*---8<--8<----------------------

double log1p(x)
double x;
{
	return(log(1+x));
}


---------------------->8-->8---*Snip* *Snip*---8<--8<----------------------

As "vars.h" is #included in most (I believe ALL) the files, log1p will get
defined throughout the programs.


---------------------------------------------------------------------------
Mike Varney    VARNEYML@CLUTX.CLARKSON.EDU
--2-- games of GB running:  Ports 2130 and 2131 or 128.143.4.3
Telnet to port 2130 for details...