# Simple way to create and merge shared libraries?

**URL:** <https://root-forum.cern.ch/t/simple-way-to-create-and-merge-shared-libraries/11652>\
**Category:** ROOT\
**Created:** [January 9, 2011, 1:23am UTC](https://root-forum.cern.ch/t/simple-way-to-create-and-merge-shared-libraries/11652 "2011-01-09T01:23:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![rene](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/7cd45c/32.png) [@rene](https://root-forum.cern.ch/u/rene)\
**Post date:** [January 9, 2011, 1:23am UTC](https://root-forum.cern.ch/t/simple-way-to-create-and-merge-shared-libraries/11652/1 "2011-01-09T01:23:58Z")

</div>

Hello,  
I have n TObject-derived classes (First.C, First.h and Second.C, Second.h etc.) and I would like to create a shared library containing all of them. How can I do this in a simple way? Since I use a Makefile for the rest of my analysis code, I thought a manual g++ing could be the solution, but I have no clue on how to achieve this, and perhaps there is some trick as simple as “.L First.C++”…

Thank you in advance!

---

_[View the full topic](https://root-forum.cern.ch/t/simple-way-to-create-and-merge-shared-libraries/11652)._
