Ok, Well it has been my silly mistake from copying and pasting the program into vim (The opening comment was not yet a comment). This program now compiles and executes as it is meant to without warning or error on my system.
I assume it must have been a similar silly mistake that prevented my other program from running as after re-writing that and using qmake-qt4 it now works fine.
Thanks to both hydrapolic and to TerryP for their suggestions...
|