I added a branch "fixwindows", which can be merged with master.
That includes a fixed up Makefile (it had some flaws with dependencies etc).
I use windows friendly tdm-gcc v9.2.0: I got the "error reading from stdin".
The fix is to use _setmode() to set stdin to binary mode - freopen(0, "rb", stdin) doesn't work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here the correct code (taken from 0.94), starting at line 7628 (in pre-0.95):
if(predicted_samples<200)return;//if(predicted_samples<20)return;//remove meinteffective_EXP=int(std::floor(std::log(predicted_samples)/std::log(4.0)-2.9));if(effective_EXP<3)effective_EXP=3;if(effective_EXP>EXP)effective_EXP=EXP;//effective_EXP=3;////remove me
With that change, I see no signifant issues with 0.95 (so did not attempt to review the rest of the file). Hopefully Orz is doing well, and will release a non-pre version of 0.95 soon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I wrote a Makefile based on the installation instructions on the website. This should help with compilation on systems with
make
installed.I have created a public github repository with the full history from v0.80 to pre0.95, https://github.com/tylov-fork/PractRand
I added a branch "fixwindows", which can be merged with master.
That includes a fixed up Makefile (it had some flaws with dependencies etc).
I use windows friendly tdm-gcc v9.2.0: I got the "error reading from stdin".
The fix is to use _setmode() to set stdin to binary mode - freopen(0, "rb", stdin) doesn't work.
Tylov,
There is a portion of pre-0.95 tests.cpp that did not get reverted to its proper 0.94 state (which Orz and I discussed here: https://sourceforge.net/p/pracrand/discussion/366935/thread/35c96c218d/
Here the correct code (taken from 0.94), starting at line 7628 (in pre-0.95):
With that change, I see no signifant issues with 0.95 (so did not attempt to review the rest of the file). Hopefully Orz is doing well, and will release a non-pre version of 0.95 soon.