The GDI+ library is mandatory for wxGraphicsContext support on Win32. This is no problem if you’re using Visual C++, since the SDK provides the headers and import libraries, but for MinGW there are no such headers and import libraries provided. But there are some sources on the internet where you can get the necessary files.
Continue reading Adding GDI+ headers to MinGW (to compile wxWidgets with wxGraphicsContext support)