[R-sig-hpc] rsprng wiki page

Dirk Eddelbuettel edd at debian.org
Mon Aug 10 04:08:29 CEST 2009


On 7 August 2009 at 13:35, Ei-ji Nakama wrote:
| I put.
| 
| http://prs.ism.ac.jp/~nakama/mascagni/
| 
| This was operated with Debian.
| 
| Always thank you. :-)

No, thank you!  

I tried the sprng4 tarball you prepared, but on standard Debian testing

/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I../SRC -I../include   -DAdd_    `: --showme:compile` -g -O2 -Wno-deprecated -Wno-write-strings -MT libsprng_la-lcg.lo -MD -MP -MF .deps/libsprng_la-lcg.Tpo -c -o libsprng_la-lcg.lo `test -f '../SRC/lcg/lcg.cpp' || echo './'`../SRC/lcg/lcg.cpp
 g++ -DHAVE_CONFIG_H -I../SRC -I../include -DAdd_ -g -O2 -Wno-deprecated -Wno-write-strings -MT libsprng_la-lcg.lo -MD -MP -MF .deps/libsprng_la-lcg.Tpo -c ../SRC/lcg/lcg.cpp  -fPIC -DPIC -o .libs/libsprng_la-lcg.o
../SRC/lcg/lcg.cpp: In member function ‘void LCG::advance_seed()’:
../SRC/lcg/lcg.cpp:723: error: reference to ‘plus’ is ambiguous
../SRC/lcg/lcg.cpp:514: error: candidates are: void plus(int*, int*, int*)
/usr/include/c++/4.3/bits/stl_function.h:137: error:                 template<class _Tp> struct std::plus
../SRC/lcg/lcg.cpp:723: error: reference to ‘plus’ is ambiguous
../SRC/lcg/lcg.cpp:514: error: candidates are: void plus(int*, int*, int*)
/usr/include/c++/4.3/bits/stl_function.h:137: error:                 template<class _Tp> struct std::plus

It seems to work when I explicitly call the plus() function from the local
namespace in line 723:

  ::plus(temp,temp2,temp);

and then the build continues. I will try to create an updated Debian package
based on your patched version -- many thanks!

Dirk

-- 
Three out of two people have difficulties with fractions.



More information about the R-sig-hpc mailing list