Re: [eigen] mpreal + MatrixFunctions |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Hi I have a pb with file mpreal.h ./mpreal.h:3073: error: ‘srand’ is not a member of ‘std’ ./mpreal.h:3074: error: ‘rand’ is not a member of ‘std’ ************************************************************** #else if(seed != 0) std::srand(seed); return mpfr::mpreal(std::rand()/(double)RAND_MAX); #endif ************************************************************** but if I had this line at the beginning of mpreal.h ******************************************************** #include <stdlib.h> ******************************************************** and I patch with ************************************************************** #else if(seed != 0) srand(seed); return mpfr::mpreal(rand()/(double)RAND_MAX); #endif ************************************************************** And it works Le 26/08/2011 12:00, Pavel Holoborodko a écrit : With the help of Philippe Marti I've fixed many issues related to x64 support on GCC. |
begin:vcard fn:Bertrand CANNELLE n:CANNELLE;Bertrand org:IGN;SR / MATIS adr;quoted-printable:;;73 avenue de Paris;Saint Mand=C3=A9 ;;94165;France email;internet:bertrand.cannelle@xxxxxx title;quoted-printable:Ing=C3=A9nieur de recherches et d'=C3=A9tudes tel;work:01 43 98 80 00 + 7580 x-mozilla-html:TRUE url:http://recherche.ign.fr/labos/matis/~cannelle version:2.1 end:vcard
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |