День добрый! Начал изучать QT. Cкачал книжку и решил скомпилять первый же пример:
#include <qapplication.h>
#include <qlabel.h>
// ----------------------------------------------------------------------
int main (int argc, char** argv)
{
QApplication app(argc, argv);
QLabel lbl("Hello, World !", 0);
app.setMainWidget (&lbl);
lbl.show();
return app.exec();
}
Вывод такой:
./hello.cpp:10:26: error: qapplication.h: No such file or directory
./hello.cpp:11:20: error: qlabel.h: No such file or directory
./hello.cpp: In function ‘int main(int, char**)’:
./hello.cpp:16: error: ‘QApplication’ was not declared in this scope
./hello.cpp:16: error: expected `;' before ‘app’
./hello.cpp:18: error: ‘QLabel’ was not declared in this scope
./hello.cpp:18: error: expected `;' before ‘lbl’
./hello.cpp:19: error: ‘app’ was not declared in this scope
./hello.cpp:19: error: ‘lbl’ was not declared in this scope
Понятно, что не хватает хидерсов. Подскажите в каком пакете они содрежатся. Debian 4.0. Спасибо.