# Loading a library from a script

**URL:** <https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306>\
**Category:** ROOT\
**Created:** [April 3, 2017, 10:21pm UTC](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306 "2017-04-03T22:21:03Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![musinsky](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/musinsky/32/11106_2.png) [@musinsky](https://root-forum.cern.ch/u/musinsky)\
**Post date:** [April 7, 2017, 3:23pm UTC](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306/13 "2017-04-07T15:23:37Z")

</div>

> [@Danilo](#):
>
> The first one, which is the one **I recommend, is to use rootmpafiles**.

> [@Generating rootmap files with root 6.04.18](https://root-forum.cern.ch/t/generating-rootmap-files-with-root-6-04-18/21493/2):
>
> For each dependent library you want to specify add the option:
> 
> -rml Rootmap library name  
> Specify the name of the library which contains the autoload keys. This  
> switch can be specified multiple times to autoload several libraries in  
> presence of a particular key.
> 
> Note that we actually **strongly recommend to no longer use this feature** but instead rely on explicitly linking the dependent library to the library itself.

Use or not to use rootmap files ?

Thanks,  
Jan

---

_[View the full topic](https://root-forum.cern.ch/t/loading-a-library-from-a-script/24306)._
