error: 'wxGraphicsContext' was not declared in this scope
Mia Lopez
#include <wx/graphics.h> file included,
wxWidgets 3.0.2 on Windows 7 compiled with USE_GDIPLUS=1 flag.
and still I get this error
error: 'wxGraphicsContext' was not declared in this scopeWhat might be causing this? Thanks.
1 Answer
wxWidgets doesn't use USE_GDIPLUS anywhere. If you meant wxUSE_GRAPHICS_GDIPLUS, then it is not a make option but a C++ one, i.e. you need to edit your wx/setup.h to enable it. If you use MinGW (and not MSVC) you also need to make sure that you have the necessary headers and libraries installed as not all distributions of MinGW include them (but e.g. TDM-GCC does).