[R-sig-hpc] rsprng wiki page

Ei-ji Nakama nakama at ki.rim.or.jp
Mon Aug 17 07:29:46 CEST 2009


Woops!.

There was a problem in 32 bit environment.
SPRNG4 mended in the same place is put.

2009/8/10 Dirk Eddelbuettel <edd at debian.org>:
>
> 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.
>
>
>



-- 
EI-JI Nakama  <nakama (a) ki.rim.or.jp>
"\u4e2d\u9593\u6804\u6cbb"  <nakama (a) ki.rim.or.jp>



More information about the R-sig-hpc mailing list