# About documenting R\_\_LOAD\_LIBRARY (i.e. using ROOT-compiled classes in ROOT scripts)

**URL:** <https://root-forum.cern.ch/t/about-documenting-r-load-library-i-e-using-root-compiled-classes-in-root-scripts/33565>\
**Category:** ROOT\
**Created:** [April 12, 2019, 9:35am UTC](https://root-forum.cern.ch/t/about-documenting-r-load-library-i-e-using-root-compiled-classes-in-root-scripts/33565 "2019-04-12T09:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 12, 2019, 9:51am UTC](https://root-forum.cern.ch/t/about-documenting-r-load-library-i-e-using-root-compiled-classes-in-root-scripts/33565/2 "2019-04-12T09:51:45Z")

</div>

In short, [“R\_\_LOAD\_LIBRARY” does nothing in a (pre)compiled macro](https://root-forum.cern.ch/t/gsystem-load-vs-r-load-library-with-aclic/29685).

See also:

> [@How to compile my code](https://root-forum.cern.ch/t/how-to-compile-my-code/32780/3):
>
> #include "TH1.h" // "ROOT Script" entry point. void wth() { TH1F \*aPointer = new TH1F("a", "a", 10, 0., 1.); aPointer-\>Draw(); } #if !defined(\_\_CINT\_\_) && !defined(\_\_CLING\_\_) && !defined(\_\_ACLIC\_\_) // "Standalone Application" entry point. // `root-config --cxx --cflags` -o wth wth.cc `root-config --libs` int main() { wth(); return 0; } #endif /\* !defined(\_\_CINT\_\_) && !defined(\_\_CLING\_\_) && !defined(\_\_ACLIC\_\_) \*/ BTW. When you post “source code” or “output” here, do remember to enclose…

> [@ROOT 6 / CLING / rootcling replacements for (\_\_CINT\_\_), (\_\_MAKECINT\_\_) and (\_\_ACLIC\_\_) macros](https://root-forum.cern.ch/t/root-6-cling-rootcling-replacements-for-cint-makecint-and-aclic-macros/27698):
>
> I am looking for ROOT 6 / CLING / rootcling replacements for ROOT 5 / CINT / rootcint macros \_\_CINT\_\_, \_\_MAKECINT\_\_ and \_\_ACLIC\_\_ (I would like to get rid of any ROOT 5 / CINT / rootcint dependencies in new ROOT 6 / CLING / rootcling source code): #if defined(\_\_CINT\_\_) && !defined(\_\_MAKECINT\_\_) // source code being actually interpreted by cint #elif defined(\_\_MAKECINT\_\_) // source code seen by rootcint only #elif defined(\_\_ACLIC\_\_) // source code being actually compiled by ACLiC #else // source…

---

_[View the full topic](https://root-forum.cern.ch/t/about-documenting-r-load-library-i-e-using-root-compiled-classes-in-root-scripts/33565)._
