I have 'main.cpp':

Qt Code:
  1. #include <QApplication>
  2. #include <QPushButton>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication app(argc, argv);
  7. QPushButton hello("Hello world!");
  8. hello.resize(100, 30);
  9. hello.show();
  10. return app.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

How can I compile it ?

Qt Code:
  1. c++ -o prog main.cpp
To copy to clipboard, switch view to plain text mode 
doesn't work