# TString.h \`no template name 'basic\_string\_view'\`

**URL:** <https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176>\
**Category:** ROOT\
**Created:** [December 4, 2017, 3:06pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176 "2017-12-04T15:06:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [December 4, 2017, 3:06pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/1 "2017-12-04T15:06:52Z")

</div>

Continuing the discussion from [Standalone application compilation error with TString.h](https://root-forum.cern.ch/t/standalone-application-compilation-error-with-tstring-h/26274/11):

I’ve run into issues when including `TString.h` in compiled scripts. This has been discussed previously above and according to the [bug tracker](https://sft.its.cern.ch/jira/browse/ROOT-9015) should have been resolved in 6.10/08. But I do observe this behavior in 6.11/02. Did this version regress with respect to that bug?

Can be reproduced with a one line script:

```auto
#include <TString.h>

```

Compiler output:

```auto
root [0] .L script.C+
Info in <TMacOSXSystem::ACLiC>: creating shared library script_C.so
Warning in cling::IncrementalParser::CheckABICompatibility():
  Possible C++ standard library mismatch, compiled with _LIBCPP_VERSION '3700'
  Extraction of runtime standard library version was: '4000'
In file included from input_line_12:9:
In file included from ././script.C:1:
In file included from /opt/root/6.11.02/include/TString.h:28:
/opt/root/6.11.02/include/RStringView.h:35:12: error: no template named 'basic_string_view'
   typedef basic_string_view<char> string_view;
           ^
/opt/root/6.11.02/include/RStringView.h:36:12: error: no template named 'basic_string_view'
   typedef basic_string_view<char16_t> u16string_view;
           ^
/opt/root/6.11.02/include/RStringView.h:37:12: error: no template named 'basic_string_view'
   typedef basic_string_view<char32_t> u32string_view;
           ^
/opt/root/6.11.02/include/RStringView.h:38:12: error: no template named 'basic_string_view'
   typedef basic_string_view<wchar_t> wstring_view;
           ^
Error in <ACLiC>: Dictionary generation failed!

```

---

<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:** [December 4, 2017, 3:31pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/2 "2017-12-04T15:31:31Z")

</div>

Maybe @pcanal knows about it…

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 4, 2017, 5:13pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/3 "2017-12-04T17:13:04Z")

</div>

> [@ksmith](#):
>
> Warning in cling::IncrementalParser::CheckABICompatibility():  
> Possible C++ standard library mismatch, compiled with \_LIBCPP\_VERSION ‘3700’  
> Extraction of runtime standard library version was: ‘4000’

This indicates that XCode was updated but ROOT was not recompiled from scratch. Because of changed in XCode the configuration step (the cmake command) must be redone from ‘scratch’ (at the very least delete CMakeCache.txt) otherwise cmake will keep the information it gather about the previous compiler version.

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [December 4, 2017, 5:13pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/4 "2017-12-04T17:13:47Z")

</div>

Got it, I’ll recompile it from scratch.

EDIT: A fresh build resolved the issue.

---

<div class="post-metadata">

**Author:** ![Martin\_Aleksa](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@Martin\_Aleksa](https://root-forum.cern.ch/u/Martin_Aleksa)\
**Post date:** [December 8, 2017, 8:26am UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/5 "2017-12-08T08:26:16Z")

</div>

Thanks for this, I could try. However, up to now I was happy with the binaries from [https://root.cern.ch/content/release-61008](https://root.cern.ch/content/release-61008) and didn’t compile root myself. Will you also provide a binary for the new XCode? Please tell me, otherwise I will compile on my mac.  
Cheers,  
Martin

---

<div class="post-metadata">

**Author:** ![ksmith](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ksmith/32/12567_2.png) [@ksmith](https://root-forum.cern.ch/u/ksmith)\
**Post date:** [December 8, 2017, 8:51pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/6 "2017-12-08T20:51:18Z")

</div>

This is a question for the ROOT team, perhaps @bellenot or @pcanal can comment.

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 8, 2017, 8:53pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/7 "2017-12-08T20:53:59Z")

</div>

We will tagging and releasing v6.12/00 in the next few days. This version will have a binaries compatible with High SIerra and XCode9.

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 22, 2017, 8:54pm UTC](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/8 "2017-12-22T20:54:08Z")

</div>

Closed on December 22, 2017, 8:54pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
