Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Dirk Eddelbuettel
On 8 April 2011 at 13:52, Cedric Ginestet wrote: | Thanks guys, | | This is partly why I got confused with this basic mistake. Why don't I | get a glibc error for all sizes of the vector on my distribution? Shall Read up on the internet on 'out of bounds access' for arrays etc --- it is undefi

Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Cedric Ginestet
Thanks guys, This is partly why I got confused with this basic mistake. Why don't I get a glibc error for all sizes of the vector on my distribution? Shall I try to change the default of my g++ compiler or update to a different version? Remember, I am currently using Ubuntu 10.04 with g++ 4.

Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Dirk Eddelbuettel
On 8 April 2011 at 14:18, [email protected] wrote: | Hmmm. I think you just need "ihttp://dirk.eddelbuettel.com ___ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-de

Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Dirk Eddelbuettel
On 8 April 2011 at 09:12, Cedric Ginestet wrote: | Hi guys, | | I have encountered a reproducible error in using Rcpp, which I have reported | below. Basically, while allocation of elements in a vector to a particular | value works well for vectors of small sizes, this returns an error when the |

Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Cedric Ginestet
Absolutely right! How stupid of me. Cheers, On 08/04/11 13:18, [email protected] wrote: Hmmm. I think you just need "iLe 8 avr. 2011 à 10:12 AM, Cedric Ginestet mailto:[email protected]>> a écrit : Hi guys, I have encountered a reproducible error in using Rcpp, which I ha

Re: [Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread romain
Hmmm. I think you just need "i a écrit : > Hi guys, > > I have encountered a reproducible error in using Rcpp, which I have reported > below. Basically, while allocation of elements in a vector to a particular > value works well for vectors of small sizes, this returns an error when the > si

[Rcpp-devel] Vector allocation memory problem

2011-04-08 Thread Cedric Ginestet
Hi guys, I have encountered a reproducible error in using Rcpp, which I have reported below. Basically, while allocation of elements in a vector to a particular value works well for vectors of small sizes, this returns an error when the size of that vector is increased. Either it returns a gi