[Kst] Shared library problem

Brisset, Nicolas Nicolas.Brisset at eurocopter.com
Thu Nov 24 17:44:51 CET 2005


Hi,

I have a (most probably quite stupid and basic) problem which I don't
know how to solve. I anybody has an idea, I'd be happy to get this to
work even though I know it is not for 1.2.0...
The undefined symbols _are_ actually exactly what is implemented in
polynom.cpp and filter.cpp. The order seems right to me, as well as
compilation options, but obviously I'm missing something. Maybe it is
linked with the use of templates ?

gmake[1]: Entering directory
`/dk/ouvea-3510-0/users/brisset/graphics/kst/plugins/discretizing_filter
s'
g++  -O3 -fPIC -ffast-math -fexpensive-optimizations -I.
-I/usr/local/kde/include -c polynom.cpp -o polynom.o
g++  -O3 -fPIC -ffast-math -fexpensive-optimizations -I.
-I/usr/local/kde/include -c filter.cpp -o filter.o
g++  -O3 -fPIC -ffast-math -fexpensive-optimizations -I.
-I/usr/local/kde/include -c kstfilter_generic.cpp -o kstfilter_generic.o
g++ -shared -o kstfilter_generic.so polynom.o filter.o
kstfilter_generic.o -lm -L/usr/local/kde/lib -lqt-mt -lc
Undefined                       first referenced
 symbol                             in file
filter<long double>::ConnectTo(long double&)kstfilter_generic.o
filter<long double>::~filter()      kstfilter_generic.o
filter<long double>::Reset()        kstfilter_generic.o
filter<long double>::NextTimeStep() kstfilter_generic.o
filter<long double>::filter(polynom<long double>&, polynom<long
double>&, double)kstfilter_generic.o
polynom<long double>::polynom(int)  kstfilter_generic.o
polynom<long double>::~polynom()    kstfilter_generic.o
polynom<long double>::operator[](int)kstfilter_generic.o
ld: fatal: Symbol referencing errors. No output written to
kstfilter_generic.so
collect2: ld returned 1 exit status
gmake[1]: *** [kstfilter_generic.so] Error 1
gmake[1]: Leaving directory
`/dk/ouvea-3510-0/users/brisset/graphics/kst/plugins/discretizing_filter
s'


More information about the Kst mailing list