Problem linking shared library generated with ACLiC

Hi all,
I’ve built a class that uses a method from Math/SpecFuncMathMore.h
To build iot with ACLiC, in the cxx class I’ve added the proper include
#include "Math/SpecFuncMathMore.h"
then I log into root and I load the mathmore libraries
and compile my class without problems!

BUT
when I link that library building my executable the compiler complains:

/home/Packages/root/lib/libGX11.so: undefined reference to `XShapeCombineMask’

so: how do I get rid of this error?
Where do the libGX11.so comes into play?

Thanks and cheers,
alessio

Seems that the problem was due to a missing -lXext when linking.

But still, now, after succeding linking I get an error message running my executable:
./Fit
./Fit: error while loading shared libraries: RooBhhBkg_cxx.so: cannot open shared object file: No such file or directory

but, of course, the shared library is there!
:cry:

Ok.
Seems that I was missing an ./ in my LD_LIBRARY_PATH.
It’s good to find problems and solve them :slight_smile:

Sorry to have bugged people.
alessio