Send the topic "Whenever I add a class I get "Undefined reference to WinMain"" to a friend.