diff --git a/samples/dll/wx_exe.cpp b/samples/dll/wx_exe.cpp index 65e7456cae..a4b5263123 100644 --- a/samples/dll/wx_exe.cpp +++ b/samples/dll/wx_exe.cpp @@ -31,6 +31,13 @@ #include "wx/stattext.h" #include "wx/button.h" +#ifndef __WXMSW__ + #error "This sample is MSW-only" +#endif + +#ifdef WXUSINGDLL + #error "This sample doesn't work with DLL build of wxWidgets" +#endif // ---------------------------------------------------------------------------- // GUI classes