# Code Runs on Linux but not macOS High Sierra

**URL:** <https://root-forum.cern.ch/t/code-runs-on-linux-but-not-macos-high-sierra/28545>\
**Category:** ROOT\
**Created:** [April 2, 2018, 11:37pm UTC](https://root-forum.cern.ch/t/code-runs-on-linux-but-not-macos-high-sierra/28545 "2018-04-02T23:37:14Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 4, 2018, 4:50am UTC](https://root-forum.cern.ch/t/code-runs-on-linux-but-not-macos-high-sierra/28545/8 "2018-04-04T04:50:50Z")

</div>

```auto
{
  // name this ROOT macro file "RunMe.cxx" and then debug everything using:
  // valgrind --tool=memcheck --leak-check=full --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx
  // valgrind --tool=exp-sgcheck --suppressions=`root-config --etcdir`/valgrind-root.supp `root-config --bindir`/root.exe -b -n -q -l RunMe.cxx
  // note: study valgrind's output messages from running the "iterate"
  gROOT->LoadMacro("testprog.C++g");
  std::cout << " ... starting iterate() ..." << std::endl;
  gROOT->Macro("iterate.C");
  std::cout << " ... finished iterate() ..." << std::endl;
}

```

---

_[View the full topic](https://root-forum.cern.ch/t/code-runs-on-linux-but-not-macos-high-sierra/28545)._
