Codice: Seleziona tutto
#include <QApplication>
#include <QPushButton>
int main(int argv, char **args)
{
QApplication app(argv, args);
a.setMainWidget( &hello );
return app.exec();
}
Codice: Seleziona tutto
bash-4.1# qmake -project
bash-4.1# qmake
bash-4.1# make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt/mkspecs/linux-g++-64 -I. -I/usr/lib64/qt/include/QtCore -I/usr/lib64/qt/include/QtGui -I/usr/lib64/qt/include -I. -I. -o p.o p.cpp
g++ -m64 -Wl,-O1 -Wl,-rpath,/usr/lib64/qt/lib -o utili p.o -L/usr/lib64/qt/lib -lQtGui -L/usr/lib64/qt/lib -L/usr/X11R6/lib64 -lQtCore -lpthread
bash-4.1# ./p.cpp
./p.cpp: line 4: syntax error near unexpected token `('
./p.cpp: line 4: ` int main(int argv, char **args)'
bash-4.1#
grazie