I'm learning The Model-View-Presenter (MVP) Pattern with Qt and have the follow example. I can build it and run it from build folder, but can't debug it due to the error:

Qt Code:
  1. .../glibc-2.19/sysdeps/x86_64/start.S:118: error: undefined reference to `main'
  2. error: collect2: error: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode 

I can't figure out what's wrong? A quick Google search brings not much information. PS: I use OpenSUSE 13.1 with Qt 4.8