When I changed line 196 in platform.h
...
renaming it causes fatal error:
Both of these are the
wrong solutions to your errors.
To solve the first, ensure that "C:\wxWidgets-2.8.5\lib\gcc_dll\mswu" is in your project's include paths. (You'll notice that this directory contains "wx\setup.h".) This is most commonly done with a global variable named "wx", with the base path set to (in your case) "C:\wxWidgets-2.8.5", and then "$(#wx.lib)\gcc_dll\mswu" in your project's Compiler search directories.
To solve the second, change your wxWidgets library option ("Link libraries" in your project's linker settings) from "wxmsw28u" to "wxmsw28ud",
or recompile wxWidgets with "BUILD=release".
As long as you select the correct options, the wxWidgets project wizard will handle all this for you. In your case, you currently have a wxWidgets
DLL (SHARED=1), built as a
monolithic library (MONOLITHIC=1),
Unicode enabled (UNICODE=1). Additionally, the
debug version of wxWidgets was built (BUILD=debug). To indicate that in the wizard, check the "Configure Advanced Options" button and select "Use __WXDEBUG__ and Debug wxWidgets lib"; however, you will never need to debug wxWidgets itself, so it's recommended that you rebuild it in release mode for a smaller and faster version.