Den Fehler vergessen:
Sagt das jemandem was? sascha@linux-eh47:~> gcc -L/usr/lib64/ -IQtGui -I/usr/include/QtGui hello-qt.cpp -o testapp /tmp/ccBSgZ6V.o: In function `main': hello-qt.cpp:(.text+0x24): undefined reference to `QApplication::QApplication(int&, char**, int)' hello-qt.cpp:(.text+0x5a): undefined reference to `operator new(unsigned long)' hello-qt.cpp:(.text+0x74): undefined reference to `QLabel::QLabel(QString const&, QWidget*, QFlagsQt::WindowType)' hello-qt.cpp:(.text+0xa8): undefined reference to `operator delete(void*)' hello-qt.cpp:(.text+0xf1): undefined reference to `QApplication::exec()' hello-qt.cpp:(.text+0xfc): undefined reference to `QApplication::~QApplication()' hello-qt.cpp:(.text+0x120): undefined reference to `QApplication::~QApplication()' /tmp/ccBSgZ6V.o: In function `QString::QString(char const*)': hello-qt.cpp:(.text._ZN7QStringC1EPKc[QString::QString(char const*)]+0x1a): undefined reference to `QString::fromAscii_helper(char const*, int)' /tmp/ccBSgZ6V.o: In function `QString::~QString()': hello-qt.cpp:(.text._ZN7QStringD1Ev[QString::~QString()]+0x2a): undefined reference to `QString::free(QString::Data*)' /tmp/ccBSgZ6V.o:(.eh_frame+0x13): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
-- Sincerely yours Sascha Manns openSUSE Marketing Team openSUSE Build Service openSUSE Features Screening Team Web: http://saschamanns.gulli.to Project-Blog: http://lizards.opensuse.org/author/saigkill Private-Blog: http://saschasbacktrace.blogspot.com