If I add the codeline you write and remove my two codelines I still get one errormessage.

Qt Code:
  1. collect2: ld returned 1 exit status
To copy to clipboard, switch view to plain text mode 

I've no idea what that error means.