# How to call external libraries

**URL:** <https://root-forum.cern.ch/t/how-to-call-external-libraries/10845>\
**Category:** ROOT\
**Created:** [August 27, 2010, 9:20pm UTC](https://root-forum.cern.ch/t/how-to-call-external-libraries/10845 "2010-08-27T21:20:58Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Swastis](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@Swastis](https://root-forum.cern.ch/u/Swastis)\
**Post date:** [February 21, 2014, 1:29pm UTC](https://root-forum.cern.ch/t/how-to-call-external-libraries/10845/11 "2014-02-21T13:29:42Z")

</div>

Thank you very much for your reply. I tried this but it still doesn’t work. Can I simply use fastjet header files using following lines in code:

```auto
#include "fastjet/PseudoJet.hh"  
#include "fastjet/ClusterSequence.hh"
#include "fastjet/Selector.hh"

gSystem->Load("~/Programs/fastjet-install/lib/libfastjet.so");
gSystem->Load("~/Programs/fastjet-install/lib/libfastjettools.so");
gSystem->AddIncludePath("~/Programs/fastjet-install/include");
```

Even if I make root access the header files somehow, it still shows an error ([Using Fasjet Header Files in Root](https://root-forum.cern.ch/t/using-fasjet-header-files-in-root/17254/1)). I tried a lot of things but couldn’t make this work. ![#-o](https://root-forum.cern.ch/uploads/default/original/1X/378b417f7f25e635458e14f511257ba15acc7a37.gif "d'oh!")

Regards,  
Swasti

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-call-external-libraries/10845)._
