Hi,

for about a week ago I upgraded from RH 5.0 to 5.1. RH 5.1 seems to be
stable and works fine, except from one thing that causes me trouble.

The fact is that since the upgrade I can't compile programs using the
QT-toolkit (http://www.troll.no/). The results when I try to build a
program using QT is lots of warnings and lots of undefined references
during linking.

This is the result when I try to compile the simple "Hello World" example:

-------------------------------

gcc -c -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include -I/usr/lib/qt/include -o 
hello.o hello.cpp
/usr/lib/qt/include/qwidget.h: In method `QWidget::QWidget(const class QWidget &)':
In file included from hello.h:10,
                 from hello.cpp:7:
/usr/lib/qt/include/qwidget.h:341: warning: base class `class QObject' should be 
explicitly initialized in the copy constructor
/usr/lib/qt/include/qbutton.h: In method `QButton::QButton(const class QButton &)':
In file included from /usr/lib/qt/include/qpushbt.h:26,
                 from hello.cpp:8:
/usr/lib/qt/include/qbutton.h:110: warning: base class `class QWidget' should be 
explicitly initialized in the copy constructor
/usr/lib/qt/include/qpushbt.h: In method `QPushButton::QPushButton(const class 
QPushButton &)':
In file included from hello.cpp:8:
/usr/lib/qt/include/qpushbt.h:73: warning: base class `class QButton' should be 
explicitly initialized in the copy constructor
/usr/lib/qt/include/qtimer.h: In method `QTimer::QTimer(const class QTimer &)':
In file included from hello.cpp:9:
/usr/lib/qt/include/qtimer.h:55: warning: base class `class QObject' should be 
explicitly initialized in the copy constructor
gcc -c -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include -I/usr/lib/qt/include -o 
main.o main.cpp
/usr/lib/qt/include/qwidget.h: In method `QWidget::QWidget(const class QWidget &)':
In file included from hello.h:10,
                 from main.cpp:10:
/usr/lib/qt/include/qwidget.h:341: warning: base class `class QObject' should be 
explicitly initialized in the copy constructor
/usr/lib/qt/include/qapp.h: In method `QApplication::QApplication(const class 
QApplication &)':
In file included from main.cpp:11:
/usr/lib/qt/include/qapp.h:166: warning: base class `class QObject' should be 
explicitly initialized in the copy constructor
/usr/bin/moc hello.h -o moc_hello.cpp
gcc -c -O2 -fno-strength-reduce -Wall -W -I/usr/X11R6/include -I/usr/lib/qt/include -o 
moc_hello.o moc_hello.cpp
/usr/lib/qt/include/qwidget.h: In method `QWidget::QWidget(const class QWidget &)':
In file included from hello.h:10,
                 from moc_hello.cpp:16:
/usr/lib/qt/include/qwidget.h:341: warning: base class `class QObject' should be 
explicitly initialized in the copy constructor
gcc hello.o main.o moc_hello.o -o hello -lqt -L/usr/X11R6/lib 
hello.o: In function `Hello::Hello(char const *, QWidget *, char const *)':
hello.o(.text+0xa0): undefined reference to `__eh_pc'
hello.o(.text+0xa9): undefined reference to `__throw'
hello.o(.text+0xc7): undefined reference to `__eh_pc'
hello.o(.text+0xd0): undefined reference to `__throw'
hello.o(.text+0xde): undefined reference to `__eh_pc'
hello.o(.text+0xe7): undefined reference to `__throw'
hello.o(.text+0xed): undefined reference to `terminate(void)'
hello.o: In function `Hello::paintEvent(QPaintEvent *)':
hello.o(.text+0x4e8): undefined reference to `__eh_pc'
hello.o(.text+0x4f1): undefined reference to `__throw'
hello.o(.text+0x505): undefined reference to `__eh_pc'
hello.o(.text+0x50e): undefined reference to `__throw'
hello.o(.text+0x521): undefined reference to `__eh_pc'
hello.o(.text+0x52a): undefined reference to `__throw'
hello.o(.text+0x531): undefined reference to `terminate(void)'
hello.o: In function `QArrayT<char> type_info function':
hello.o(.gnu.linkonce.t.__tft7QArrayT1Zc+0x13): undefined reference to `QGArray 
type_info function'
hello.o(.gnu.linkonce.t.__tft7QArrayT1Zc+0x18): undefined reference to `QGArray 
type_info node'
hello.o(.gnu.linkonce.t.__tft7QArrayT1Zc+0x23): undefined reference to `__rtti_si'
main.o: In function `main':
main.o(.text+0x1c4): undefined reference to `__eh_pc'
main.o(.text+0x1cd): undefined reference to `__throw'
main.o(.text+0x210): undefined reference to `__eh_pc'
main.o(.text+0x219): undefined reference to `__throw'
main.o(.text+0x237): undefined reference to `__eh_pc'
main.o(.text+0x240): undefined reference to `__throw'
main.o(.text+0x251): undefined reference to `__eh_pc'
main.o(.text+0x25a): undefined reference to `__throw'
main.o(.text+0x262): undefined reference to `__eh_pc'
main.o(.text+0x26b): undefined reference to `__throw'
main.o(.text+0x272): undefined reference to `__eh_pc'
main.o(.text+0x27b): undefined reference to `__throw'
main.o(.text+0x282): undefined reference to `__eh_pc'
main.o(.text+0x28b): undefined reference to `__throw'
main.o(.text+0x291): undefined reference to `terminate(void)'
main.o: In function `QString type_info function':
main.o(.gnu.linkonce.t.__tf7QString+0x23): undefined reference to `__rtti_si'
moc_hello.o: In function `Hello::initMetaObject(void)':
moc_hello.o(.text+0x108): undefined reference to `__eh_pc'
moc_hello.o(.text+0x111): undefined reference to `__throw'
moc_hello.o(.text+0x119): undefined reference to `terminate(void)'
moc_hello.o: In function `Hello type_info function':
moc_hello.o(.text+0x15b): undefined reference to `QWidget type_info function'
moc_hello.o(.text+0x16d): undefined reference to `__rtti_class'
moc_hello.o(.rodata+0x104): undefined reference to `QWidget type_info node'
make: *** [hello] Error 1

-----------------------------

What can be wrong? Am I alone with this problem?

Regards,
====================================================================
 Anders Karlsson        E-mail: <[EMAIL PROTECTED]>
 Rydsvägen 246 C.36        WWW: <http://www.lysator.liu.se/~pugo/>
 S-58434 LINKÖPING
 SWEDEN                 Lysator academic computer society:
 Phone: +46-13-261010      WWW: <http://www.lysator.liu.se/>
====================================================================


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with
                       "unsubscribe" as the Subject.

Reply via email to