title: Why do I get these link errors?
body: <p>When I try running a <code>Qt</code> application with the following <code>main.cpp</code> file:</p>
  
  <pre><code>#include &lt;QApplication&gt;
  #include "ui_checkabder.h"
  #include &lt;QDialog&gt;
  int main(int argc, char *argv[])
  {
  QApplication app(argc, argv);
  Ui::CheckAbder ui;
  QDialog *dialog = new QDialog;
  ui.setupUi(dialog);
  dialog-&gt;show();
  return app.exec();
  }
  </code></pre>
  
  <p>I get the following errors:</p>
  
  <pre><code>c:/QtSDK/Desktop/Qt/4.7.3/mingw/lib/libqtmaind.a(qtmain_win.o):-1: In function `WinMain@16':
  
  `c:/ndk_buildrepos/qt-desktop/src/winmain/qtmain_win.cpp:131: error: undefined reference to qMain(int, char **)`
  
  :-1: error: collect2: ld returned 1 exit status
  </code></pre>
  
  <p>And, <code>abder.pro</code> looks like this:</p>
  
  <pre><code>######################################################################
  # Automatically generated by qmake (2.01a) Mon Apr 18 09:52:56 2011
  ######################################################################
  
  TEMPLATE = app
  TARGET = 
  DEPENDPATH += .
  INCLUDEPATH += .
  
  # Input
  FORMS += checkabder.ui
  </code></pre>
  
  <p>How can I solve those errors? Provided that I'm using <code>Qt Creator</code>.</p>
  
  <p>Thanks.</p>