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

qt examples -- linking problems



Hi all.

I'm having some problems building the qt example programs.

-----------------------------------
$ make 2> err.txt
g++-2.95 -c -I/usr/include/qt -pipe -fno-exceptions -O3 -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -o hello.o hello.cpp
g++-2.95 -L/lib    -o ./hello hello.o main.o moc_hello.o  -lqt
------------------------------------

Errors:
...
main.o(.text+0x24): undefined reference to `QString::shared_null'
...

-----------------------------------
$ readelf -s /usr/lib/libqt.so | c++filt | grep "QString::shared_null"
 1175: 00482e64     4 OBJECT  GLOBAL DEFAULT   13 QString::shared_null
------------------------------------

Does anyone have any idea what the problem could be?

Thanks,
Craig



Reply to: