#pragma hdrstop
#endif
-#if wxUSE_DYNLIB_CLASS
+#if wxUSE_DYNLIB_CLASS && !wxUSE_DYNAMIC_LOADER
#if defined(__WINDOWS__)
#include "wx/msw/private.h"
wxString msg(_("Failed to load shared library '%s'"));
#ifdef HAVE_DLERROR
- wxChar *err = dlerror();
+ const wxChar *err = dlerror();
if( err )
{
failed = TRUE;
wxString msg(_("wxDllLoader failed to GetSymbol '%s'"));
#ifdef HAVE_DLERROR
- wxChar *err = dlerror();
+ const wxChar *err = dlerror();
if( err )
{
failed = TRUE;