[sisyphus] Ðùê÷ìê ìðîòêíóçêê òôêíðãåïêë Qt/KDE

" Alex Maltsev " =?iso-8859-1?q?altovshik_=CE=C1_mail=2Eru?=
ðÔ äÅË 12 10:58:54 MSK 2003


Ïå ìðîòêíêôèåæõó ïê ðäïð òôêæðãåïêå, configure ïå ïâéðäêæ Qt (ïâéðäêí ìâìðå-æð  
þôåîó òðõíå âòäåëæâ libqt3, ïð òðæðî òåôåõæâí....). 
Òôê ìðîòêíóçêê þðæ æâìðë òôðúê 
 
#include <qapplication.h> 
#include <qpushbutton.h> 
 
int main( int argc, char **argv ) 
  { 
   QApplication a(argc, argv ); 
   QPushButton hello( "Hello world!", 0 ); 
    hello.resize( 100, 30 ); 
      a.setMainWidget( &hello ); 
        hello.show(); 
	return a.exec(); 
  } 
 
òðíèàâá õíåäèáüêå õðð÷üåïêó 
 
qt.o: In function `main': 
qt.o(.text+0x21): undefined reference to `QApplication::QApplication(int &,  
char **)' 
qt.o(.text+0x2e): undefined reference to `QString::QString(char const *)' 
qt.o(.text+0x42): undefined reference to `QPushButton::QPushButton(QString  
const &, QWidget *, char const *)' 
qt.o(.text+0x5a): undefined reference to `QString::shared_null' 
qt.o(.text+0x65): undefined reference to `QStringData::deleteSelf(void)' 
qt.o(.text+0x7b): undefined reference to `QPushButton::resize(int, int)' 
qt.o(.text+0x87): undefined reference to `QApplication::setMainWidget(QWidget  
*)' 
qt.o(.text+0x8f): undefined reference to `QWidget::show(void)' 
qt.o(.text+0x97): undefined reference to `QApplication::exec(void)' 
qt.o(.text+0xa4): undefined reference to `QPushButton::~QPushButton(void)' 
qt.o(.text+0xae): undefined reference to `QApplication::~QApplication(void)' 
collect2: ld returned 1 exit status 
make: *** [hello] Ðùê÷ìâ 1 
 
Îðãåæ ìæð ÿïâåæ, êÿ-ÿâ àåúð configure ïå ïâéðäêæ Qt? (ïâõìðíûìð ó òðïêîâá, þõå  
ðùê÷ìê êîåïïð êÿ-ÿâ øæðúð) 



ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ Sisyphus