I have read: undefined reference to `WinMain@16' & still don\'t understand my problem.
I had a program that was working. Added a class but had not implemented it
Change the type of your application under your project settings to Console. WinMain16 is related to Windows graphical applications. I believe you do need to set a special preprocessor flag or include a library of some sort to get it to work properly if you keep it as a Windows graphical application, but in this case, the easiest fix would be to just get a console application.
Also, maybe adding the -mwindows flag can help you.