# Vectors in 5.28.00

**URL:** <https://root-forum.cern.ch/t/vectors-in-5-28-00/11846>\
**Category:** ROOT\
**Created:** [February 9, 2011, 1:17pm UTC](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846 "2011-02-09T13:17:57Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pmermod](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/f4b2a3/32.png) [@pmermod](https://root-forum.cern.ch/u/pmermod)\
**Post date:** [February 17, 2011, 2:03pm UTC](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846/6 "2011-02-17T14:03:19Z")

</div>

Hi Alex and others,

I installed root version 5.28 on my new laptop and I also get problems with vectors of vectors, which I don’t have when running on lxplus (version 5.26).

Try the following macro:

[quote]{

gSystem-\>Load(“[libCintex.so](http://libCintex.so)”);  
Cintex::Cintex::Enable();

#include “Rtypes.h”  
#include

vector\<vector\> i;

}  
[/quote]  
The last command gives me an error message with version 5.28:

[quote]Warning in : Failed to generate the dependency file for /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_vector\_vector\_int\_allocator\_int\_\_\_\_\_\_cxx.so  
In file included from /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_vector\_vector\_int\_allocator\_int\_\_\_\_\_\_cxx\_ACLiC\_dict.h:34,  
from /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_vector\_vector\_int\_allocator\_int\_\_\_\_\_\_cxx\_ACLiC\_dict.cxx:17:  
/home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_vector\_vector\_int\_allocator\_int\_\_\_\_\_.cxx:2: fatal error: prec\_stl/vector: No such file or directory  
compilation terminated.  
g++: /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_vector\_vector\_int\_allocator\_int\_\_\_\_\_\_cxx\_ACLiC\_dict.o: No such file or directory  
Error in : Compilation failed!  
Warning in : Failed to generate the dependency file for /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_random\_access\_iterator\_vector\_int\_allocator\_int\_\_\_\_long\_\_cxx.so  
In file included from /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_random\_access\_iterator\_vector\_int\_allocator\_int\_\_\_\_long\_\_cxx\_ACLiC\_dict.h:34,  
from /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_random\_access\_iterator\_vector\_int\_allocator\_int\_\_\_\_long\_\_cxx\_ACLiC\_dict.cxx:17:  
/home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_random\_access\_iterator\_vector\_int\_allocator\_int\_\_\_\_long\_.cxx:2: fatal error: prec\_stl/vector: No such file or directory  
compilation terminated.  
g++: /home/phil/MyCode/SYNTcode/testana/macros/AutoDict\_random\_access\_iterator\_vector\_int\_allocator\_int\_\_\_\_long\_\_cxx\_ACLiC\_dict.o: No such file or directory  
Error in : Compilation failed!  
[/quote]

although my code actually runs fine despite of it:

[quote]root [1] i  
(class vector\<vector \>)151828176  
[/quote]

Try also the following macro:

[quote]{

gSystem-\>Load(“[libCintex.so](http://libCintex.so)”);  
Cintex::Cintex::Enable();

#include “Rtypes.h”  
#include

vector\<vector\> f;  
vector ff;  
ff.push\_back(1);  
f.push\_back(ff);

vector\<vector\> d;  
vector dd;  
dd.push\_back(2);  
d.push\_back(dd);

}[/quote]

There the operation with floats works very fine, while the last command (with double) does not work:

[quote]Error: Can’t call vector\<vector\<double,allocator \>,allocator\<vector\<double,allocator \> \> \>::push\_back(dd) in current scope (tmpfile):1:  
Possible candidates are…  
(in vector\<vector\<double,allocator \>,allocator\<vector\<double,allocator \> \> \>)  
\*\*\* Interpreter error recovered \*\*\*  
[/quote]

Now my immediate problem is that I need to use vectors of vectors of double in my analysis code and there is no way I can run it on my laptop. Any idea?

Cheers  
Phil

---

_[View the full topic](https://root-forum.cern.ch/t/vectors-in-5-28-00/11846)._
