So I have this code...
Qt Code:
  1. #include <QtGui/QApplication>
  2. #include "mainlogin.h"
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. QApplication app(argc, argv);
  7. mainlogin w;
  8. w.show();
  9. return app.exec();
  10. }
To copy to clipboard, switch view to plain text mode 

I get the compiler error:
Qt Code:
  1. main.cpp:10: error: expected '}' at end of input
To copy to clipboard, switch view to plain text mode 

So this code works...
Qt Code:
  1. #include <QtGui/QApplication>
  2. #include "mainlogin.h"
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. QApplication app(argc, argv);
  7. mainlogin w;
  8. w.show();
  9. return app.exec();
  10. }}
To copy to clipboard, switch view to plain text mode 

Then I get this error:
Qt Code:
  1. moc_mainlogin.cpp:68: error: expected '}' at end of input
To copy to clipboard, switch view to plain text mode 

After I fix that, I get
Qt Code:
  1. c:\ndk_buildrepos\qt-desktop\src\winmain\qtmain_win.cpp:131: error: undefined reference to `qMain(int, char**)'
To copy to clipboard, switch view to plain text mode 

Is anyone else having this problem?