# Symbol vector\<double\> is not defined in current scope

**URL:** <https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948>\
**Category:** Newbie\
**Created:** [July 2, 2019, 7:56am UTC](https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948 "2019-07-02T07:56:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DHorne](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@DHorne](https://root-forum.cern.ch/u/DHorne)\
**Post date:** [July 2, 2019, 7:56am UTC](https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948/1 "2019-07-02T07:56:53Z")

</div>

I’ve just installed ROOT 5.34/36 (installation details below) and I’m falling at the first hurdle when following the ROOT Primer pdf.

Basic arithmetic is working as on page 7, section 2.1 “ROOT as calculator” but at the very top of page 8, section 2.2 “Learn C++ at the ROOT prompt” the first line is not returning correctly:

```auto
using doubles = std::vector<double>;

```

returns the error message:

```auto
Error: Symbol vector<double> is not defined in current scope (tmpfile)(1)
***Interpreter error recovered***

```

I’ve tried #include on the command line but this changed nothing. Am I doing something wrong or does it look like something went wrong with the installation?

_Installation_

Windows 10 Enterprise version 1709  
ROOT version 5.34/36 (required to use this version)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 2, 2019, 8:09am UTC](https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948/2 "2019-07-02T08:09:43Z")

</div>

Hi,

This syntax is not supported by ROOT 5 (as most of modern c++)

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![DHorne](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/b3f665/32.png) [@DHorne](https://root-forum.cern.ch/u/DHorne)\
**Post date:** [July 2, 2019, 8:13am UTC](https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948/3 "2019-07-02T08:13:49Z")

</div>

Winner, thanks very much.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [July 2, 2019, 12:02pm UTC](https://root-forum.cern.ch/t/symbol-vector-double-is-not-defined-in-current-scope/34948/4 "2019-07-02T12:02:53Z")

</div>

I.e. Bertrand recommends to install ROOT 6 instead. Just making sure that’s obvious for everyone 🙂
