Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : John Lepikhin                        2:5070/156     05 Nov 2002  02:54:29
 To : All
 Subject : изучаем qt3
 -------------------------------------------------------------------------------- 
 
         Глупейший вопрос, но...
 
         Есть код из примеров:
 =====
 #include <qt/qapplication.h>
 #include <qt/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();
 }
 =====
         Какой строчкой его можно скомпилировать? :)
 
         qmake на этот файл ругается 'Unknown test function: int main',
 gcc (без дополнительных параметров) выдает такое:
 =====
 In file included from /usr/include/qt/qmime.h:43,
 [...]
 /usr/include/qt/qmap.h:49: iterator: No such file or directory
 /usr/include/qt/qmap.h:50: map: No such file or directory
 In file included from /usr/include/qt/qtranslator.h:44,
 [...]
 /usr/include/qt/qvaluelist.h:48: iterator: No such file or directory
 /usr/include/qt/qvaluelist.h:49: list: No such file or directory
 =====
 
         Сорри, но в документациях ничего путного не нашел.
 -- 
 ... [болотный сисоп] {возращаюсь}
 --- Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)
  * Origin: to two two two or not to two two two? (2:5070/156.0)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 изучаем qt3   John Lepikhin   05 Nov 2002 02:54:29 
 Re: изучаем qt3   Alexey Lebedeff   05 Nov 2002 12:46:18 
Архивное /ru.linux/367104e3d5ba4.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional