delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/06/23/08:11:10

Date: Tue, 23 Jun 92 13:23:03 +0200
From: mike AT theo DOT iwr DOT uni-heidelberg DOT de (Michael Brockmann)
Sender: x920031 AT rubb DOT rz DOT ruhr-uni-bochum DOT de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Random Numbers

I had a problem using the random number generators provided by the gpp-class library. I solved it by modifying some header files and the libc.a library. 
In the directory ./cplusinc I have changed all occurrences of
	#include <Random.h>   into    #include <_Random.h>
Additionally, I have taken the file _random.cc from an older distribution of djgpp, compiled it and added it to libc.a . I compiled a second time with 
gcc -pg and added that object file to libc_p.a .

I would like to know whether this procedure is correct or if there is an easier way?

Michael Brockmann

File _random.cc follows:
#ifdef __GNUG__
#pragma implementation "_Random.h"
#endif
#include <_Random.h>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019