examples not finding qt functions



When making pango, the example/Makefile produces:

  c++ -g -O2 -o .libs/pango-viewer viewer-qt.o moc_viewer-qt.o
    ../pango/.libs/libpangox-1.0.so
    /home/evansl/download/pango/pango-1.2.3/pango/.libs/libpango-1.0.so
-L/usr/local/lib -L/usr/X11R6/lib -lX11 ../pango/.libs/libpango-1.0.so
    /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl
    /usr/local/lib/libglib-2.0.so -L/usr/lib/qt2/lib -lqt -Wl,--rpath
    -Wl,/usr/local/lib

viewer-qt.o: In function `ViewerPara::ViewerPara[not-in-charge](_PangoContext*, QString const&)': /usr/lib/qt2/include/qarray.h:57: undefined reference to `QGArray::QGArray[not-in-charge]()' viewer-qt.o: In function `ViewerPara::ViewerPara[not-in-charge](_PangoContext*, QString const&)': /usr/lib/qt2/include/qcstring.h:269: undefined reference to `QString::utf8() const' viewer-qt.o: In function `ViewerPara::ViewerPara[not-in-charge](_PangoContext*, QString const&)': /usr/lib/qt2/include/qarray.h:77: undefined reference to `QGArray::assign(QGArray const&)'

however, nm on /usr/lib/qt/lib/libqt.so produces:

  cd /usr/lib/qt2/lib/
  nm --dynamic --demangle libqt.so | grep QString::utf8
  0011bf10 T QString::utf8(void) const

So why doesn't the  c++ command find QString::utf8 when producing
.libs/pango-viewer?

TIA.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]