diff --git a/samples/resource/resource.cpp b/samples/resource/resource.cpp index e29236c867..f076602f16 100644 --- a/samples/resource/resource.cpp +++ b/samples/resource/resource.cpp @@ -24,6 +24,10 @@ #include "wx/wx.h" #endif +#if !wxUSE_RESOURCES + #error "You should set wxUSE_RESOURCES to 1 to compile this sample" +#endif + #if wxUSE_UNICODE #error "This sample can't be compiled in Unicode mode." #endif // wxUSE_UNICODE