# Problem compiling locally on Mac

**URL:** <https://root-forum.cern.ch/t/problem-compiling-locally-on-mac/27197>\
**Category:** ROOT\
**Created:** [December 6, 2017, 1:57pm UTC](https://root-forum.cern.ch/t/problem-compiling-locally-on-mac/27197 "2017-12-06T13:57:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 6, 2017, 3:13pm UTC](https://root-forum.cern.ch/t/problem-compiling-locally-on-mac/27197/2 "2017-12-06T15:13:37Z")

</div>

First a remark on posting code snippets:

> [@Getting the same histograms after cuts](https://root-forum.cern.ch/t/getting-the-same-histograms-after-cuts/24719/2):
>
> Remark on the way to post code snippets: When you post pieces of code on the forum enclose it with ``` . That makes your post much more readable (I systematically edit your posts that way) . So do: ``` // this is a C++ piece of code. ``` And it will display as: // this is a C++ piece of code.

Second, it is most likely that XCode was updated and ROOT was not recompiled ( I just went through this two days ago):

> [@TString.h \`no template name 'basic\_string\_view'\`](https://root-forum.cern.ch/t/tstring-h-no-template-name-basic-string-view/27176/3):
>
> 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.

---

_[View the full topic](https://root-forum.cern.ch/t/problem-compiling-locally-on-mac/27197)._
