# Generating rootmap files with root 6.04.18

**URL:** <https://root-forum.cern.ch/t/generating-rootmap-files-with-root-6-04-18/21493>\
**Category:** ROOT\
**Created:** [July 7, 2016, 11:24am UTC](https://root-forum.cern.ch/t/generating-rootmap-files-with-root-6-04-18/21493 "2016-07-07T11:24:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [July 7, 2016, 4:46pm UTC](https://root-forum.cern.ch/t/generating-rootmap-files-with-root-6-04-18/21493/2 "2016-07-07T16:46:42Z")

</div>

Hi Otto,

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. I.e.`
g++ --shared -o libTMrbUtils.so .... ${OBJECT_FILES} ..... -lGraf`This allows to then add to that link line the flag`-Wl,--no-undefined `which will warn you of missing symbols (if any) at compile time rather than delaying the check until run-time.

Cheers,  
Philippe.

---

_[View the full topic](https://root-forum.cern.ch/t/generating-rootmap-files-with-root-6-04-18/21493)._
