Mail Archives: djgpp/1992/06/23/08:11:10
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 -