[SVN trunk, MinGW] A few compile errors
Wlodek Szafran
wlodek.szafran at hwcn.org
Thu Nov 1 21:11:56 PDT 2007
Hello,
after the recent changes, the following errors are occurring during =
compilation:
../include/wx/valtext.h:62: error: ISO C++ forbids declaration of =
'wxTextEntry' with no type
The wxTextEntry class is unknown here, a forward declaration is sufficient.
../include/wx/generic/textdlgg.h:52: error: invalid use of incomplete =
type 'struct wxTextCtrl'
The forward declaration of wxTextCtrl is not enough here, the =
appropriate header needs to be included.
../src/common/valtext.cpp:87: error: 'wxComboBox' has not been declared
../src/common/valtext.cpp:89: error: 'wxComboBox' was not declared in =
this scope
The appropriate header needs to be included for the non-PCH build.
The attached patch contains fixes to these errors.
Best regards.
-- =
Wlodek Szafran
-------------- next part --------------
Index: include/wx/valtext.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- include/wx/valtext.h (revision 49593)
+++ include/wx/valtext.h (working copy)
@@ -28,6 +28,8 @@
#define wxFILTER_INCLUDE_CHAR_LIST 0x0040
#define wxFILTER_EXCLUDE_CHAR_LIST 0x0080
=
+class WXDLLIMPEXP_CORE wxTextEntry;
+
class WXDLLEXPORT wxTextValidator: public wxValidator
{
DECLARE_DYNAMIC_CLASS(wxTextValidator)
Index: include/wx/generic/textdlgg.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- include/wx/generic/textdlgg.h (revision 49593)
+++ include/wx/generic/textdlgg.h (working copy)
@@ -22,7 +22,7 @@
#include "wx/valtext.h"
#endif
=
-class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
+#include "wx/textctrl.h"
=
extern WXDLLEXPORT_DATA(const wxChar) wxGetTextFromUserPromptStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxGetPasswordFromUserPromptStr[];
Index: src/common/valtext.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- src/common/valtext.cpp (revision 49593)
+++ src/common/valtext.cpp (working copy)
@@ -23,6 +23,7 @@
#ifndef WX_PRECOMP
#include <stdio.h>
#include "wx/textctrl.h"
+ #include "wx/combobox.h"
#include "wx/utils.h"
#include "wx/msgdlg.h"
#include "wx/intl.h"
More information about the wx-dev
mailing list