TSpectrum undefined reference

Hi
I am using TSpectrum but I get this error with compiling
"undefined reference to `Spectrum::Spectrum()’ "

This is my compiler
g++ -I root-config --libs --cflags -o try try.C root-config --glibs

The header file is included
any help
Thanks

Hi,

TSpectrum is in libSpectrum.so - so you’re missing a -lSpectrum:

g++ `root-config --glibs --cflags` -lSpectrum -o try try.C

Axel.

the problem is Solved …
Thanks