Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

error: 'wxGraphicsContext' was not declared in this scope

Writer 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 scope

What 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).

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.