# Root run time error with a simple macro

**URL:** <https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383>\
**Category:** ROOT\
**Created:** [May 13, 2020, 5:03am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383 "2020-05-13T05:03:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaejeongKim](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taejeongkim/32/21960_2.png) [@TaejeongKim](https://root-forum.cern.ch/u/TaejeongKim)\
**Post date:** [May 13, 2020, 5:03am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/1 "2020-05-13T05:03:43Z")

</div>

Dear all,

When I run a simple macro with RDataFrame, I am having following message:

```auto
tjkim@htop LQRun2]$ root -l ana_lq.C
root [0]
Processing ana_lq.C...
IncrementalExecutor::executeFunction: symbol '_ZNSsC1EOSs' unresolved while linking [cling interface function]!
You are probably missing the definition of std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string&&)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZNSsaSEOSs' unresolved while linking [cling interface function]!
You are probably missing the definition of std::string::operator=(std::string&&)
Maybe you need to load the corresponding shared library?

```

It looks like it is related with gcc compiler, STD library.  
I am wondering if anyone can help me figure out the problem and how to solve it?  
The macro was running in following platform:

_ROOT Version:_ root 6.20  
_Platform:_ CentOS release 6.9  
_Compiler:_ gcc 5.3.1

Thank you very much,

Regards,  
Taejeong

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 13, 2020, 6:52am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/2 "2020-05-13T06:52:17Z")

</div>

I guess it would help if you attach this macro to this thread.

---

<div class="post-metadata">

**Author:** ![TaejeongKim](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taejeongkim/32/21960_2.png) [@TaejeongKim](https://root-forum.cern.ch/u/TaejeongKim)\
**Post date:** [May 13, 2020, 7:16am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/3 "2020-05-13T07:16:20Z")

</div>

Yes, right. The macro I used is at this link in github.

> <https://github.com/HEP-HYU/LQRun2/blob/master/ana_lq.C>

  
I think the error comes from the function in the macro.

Thank you!

---

<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:** [May 18, 2020, 5:07pm UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/4 "2020-05-18T17:07:00Z")

</div>

Do you still have this problem? (It might be a confusion between installations)?

---

<div class="post-metadata">

**Author:** ![TaejeongKim](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/taejeongkim/32/21960_2.png) [@TaejeongKim](https://root-forum.cern.ch/u/TaejeongKim)\
**Post date:** [May 20, 2020, 1:14am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/5 "2020-05-20T01:14:02Z")

</div>

We are still having the problem in that machine which uses gcc in devtoolset-4. So it must be a confusion somewhere during the installation. It compiles well though. Just when I run with the function, it creates the error.

---

<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:** [May 20, 2020, 7:01am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/6 "2020-05-20T07:01:28Z")

</div>

> [@Devtoolset/gcc-toolset compatibility](https://root-forum.cern.ch/t/devtoolset-gcc-toolset-compatibility/38286/2):
>
> This still holds: Anyone reading this and willing to come up with a pull request for it is very welcome to ping me (also privately) to get some hints on what needs to be done. Until then: no devtoolset, please. Axel.

---

<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:** [June 3, 2020, 7:01am UTC](https://root-forum.cern.ch/t/root-run-time-error-with-a-simple-macro/39383/7 "2020-06-03T07:01:31Z")

</div>

Closed on June 3, 2020, 7:01am UTC

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