tag:blogger.com,1999:blog-2130073091225594073.post7095254150751766615..comments2023-02-26T12:40:35.010+09:00Comments on Reiisi -- 零石: bc on MSWindows零石http://www.blogger.com/profile/01111094813708912513noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-2130073091225594073.post-38691925197753732492017-09-02T09:43:51.306+09:002017-09-02T09:43:51.306+09:00I can't take a look at this today, but, just a...I can't take a look at this today, but, just as a matter of principle, I would look for something besides rand() and srand() for the defines.<br /><br />There are of course questions of how you intend to use bc that need to be considered. For some uses, rand() and srand() would actually be indicated.零石https://www.blogger.com/profile/01111094813708912513noreply@blogger.comtag:blogger.com,1999:blog-2130073091225594073.post-51989294066223196092017-09-01T17:48:12.315+09:002017-09-01T17:48:12.315+09:00I've just got this working:
1) Installed mingw...I've just got this working:<br />1) Installed mingw via the installer, I added the gcc and c++ compilers (see http://www.mingw.org/wiki/getting_started)<br />2) Install wget - I used command line here "mingw-get install mysys-wget"<br />3) wget bc - "wget http://ftp.gnu.org/gnu/bc/bc-1.07.tar.gz"<br />4) unpack - "tar xfz bc-1.07.tar.gz"<br />5) Change to the new directory - "cd bc-1.07"<br />6) ./configure<br />7) make will fail here with an error about random, the fix is detailed here - https://stackoverflow.com/questions/27186706/spin-verification-undefined-reference-to-random-and-srandom<br />8) With this change made, build and install - "make" then "make install"<br /><br />Done, a working bc :-D<br /><br />Glenn Researcherhttps://www.blogger.com/profile/16527483250876254718noreply@blogger.com