[R] rimage installation problem-ubuntu 8.10

Dirk Eddelbuettel edd at debian.org
Thu Jan 15 18:18:08 CET 2009


On 15 January 2009 at 03:06, abbethesieyes wrote:
| 
| (I'm quite afraid this is a dumb question, so sorry in advance)
| I am trying to install the package rimage to R version 2.8.1 with Ubuntu
| Intrepid.  When I type "sudo R CMD INSTALL" I get the following error
| message (pasted below). I know the same problem appears here
| (http://www.r-project.org/nosvn/R.check/r-patched-linux-ix86/rimage-00install.html)
| but I do not know what its appearance there means. 
| 
| Thanks in advance for any help!
| 
| Abbe
| 
| g++ -I/usr/share/R/include -g -O2       -fpic  -g -O2 -c matrix.cpp -o
| matrix.o
| /usr/include/c++/4.3/bits/stl_vector.h: In member function  void
| std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_Integer, _Integer,
| std::__true_type) [with _Integer = int, _Tp = std::vector<double,
| std::allocator<double> >, _Alloc = std::allocator<std::vector<double,
| std::allocator<double> > >] :
| /usr/include/c++/4.3/bits/stl_vector.h:290:   instantiated from
|  std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const
| _Alloc&) [with _InputIterator = int, _Tp = std::vector<double,
| std::allocator<double> >, _Alloc = std::allocator<std::vector<double,
| std::allocator<double> > >] 
| matrix.cpp:31:   instantiated from here
| /usr/include/c++/4.3/bits/stl_vector.h:932: error: no matching function for
| call to  std::vector<std::vector<double, std::allocator<double> >,
| std::allocator<std::vector<double, std::allocator<double> > >
| >::_M_fill_initialize(size_t, int&) 
| /usr/include/c++/4.3/bits/stl_vector.h:974: note: candidates are: void
| std::vector<_Tp, _Alloc>::_M_fill_initialize(size_t, const _Tp&) [with _Tp =
| std::vector<double, std::allocator<double> >, _Alloc =
| std::allocator<std::vector<double, std::allocator<double> > >]
| make: *** [matrix.o] Error 1

Nothing specific to Ubuntu here. 

The rimage package simply does not build under g++ 4.3 as constructors like

   m = new vector< vector <double> >(x, y);

are not supported -- ie you cannot pass the (x,y) size information.  Looks
like that worked in the past.

However, you do get 

   m = new vector< vector <double> >;

though and could explicitly resize the matrix (ie once for rows and then in a
loop for each column).  May require some testing though.

Dirk


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




More information about the R-help mailing list