wxIsBusy not defined?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
snowsquirrel
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Dec 30, 2004 11:37 pm

wxIsBusy not defined?

Post by snowsquirrel » Tue Apr 29, 2008 12:34 am

I am on debian, using the the 2.8.7 packages of wx. But I can't even build any of the samples. I seem to have all the headers I need.

Is there a broken dependancy?

Code: Select all

g++ -c -o listbox_lboxtest.o -I.  `wx-config --cxxflags`   -MTlistbox_lboxtest.o -MF`echo listbox_lboxtest.o | sed -e 's,\.o$,.d,'` -MD lboxtest.cpp
/usr/include/wx-2.8/wx/cursor.h: In constructor 'wxBusyCursorSuspender::wxBusyCursorSuspender()':
/usr/include/wx-2.8/wx/cursor.h:65: error: 'wxIsBusy' was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:67: error: 'wxBusyCursor' has not been declared
/usr/include/wx-2.8/wx/cursor.h:67: error: 'wxSetCursor' was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h: In destructor 'wxBusyCursorSuspender::~wxBusyCursorSuspender()':
/usr/include/wx-2.8/wx/cursor.h:72: error: 'wxIsBusy' was not declared in this scope
/usr/include/wx-2.8/wx/cursor.h:74: error: 'wxBusyCursor' has not been declared
/usr/include/wx-2.8/wx/cursor.h:74: error: 'wxSetCursor' was not declared in this scope
/usr/include/wx-2.8/wx/region.h: In member function 'bool wxRegionBase::Intersect(const wxRect&)':
/usr/include/wx-2.8/wx/region.h:251: error: invalid use of undefined type 'struct wxRegion'
/usr/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of 'struct wxRegion'
/usr/include/wx-2.8/wx/region.h: In member function 'bool wxRegionBase::Subtract(const wxRect&)':
/usr/include/wx-2.8/wx/region.h:256: error: invalid use of undefined type 'struct wxRegion'
/usr/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of 'struct wxRegion'
/usr/include/wx-2.8/wx/region.h: In member function 'bool wxRegionBase::Xor(const wxRect&)':
/usr/include/wx-2.8/wx/region.h:261: error: invalid use of undefined type 'struct wxRegion'
/usr/include/wx-2.8/wx/gdicmn.h:38: error: forward declaration of 'struct wxRegion'
/usr/include/wx-2.8/wx/window.h: At global scope:
/usr/include/wx-2.8/wx/window.h:82: error: field 'font' has incomplete type
/usr/include/wx-2.8/wx/window.h:85: error: field 'colFg' has incomplete type
/usr/include/wx-2.8/wx/window.h:89: error: field 'colBg' has incomplete type
/usr/include/wx-2.8/wx/window.h:914: error: 'wxUpdateUIEvent' has not been declared
/usr/include/wx-2.8/wx/window.h:1095: error: 'wxSysColourChangedEvent' has not been declared
/usr/include/wx-2.8/wx/window.h:1096: error: 'wxInitDialogEvent' has not been declared
/usr/include/wx-2.8/wx/window.h:1097: error: 'wxMouseEvent' has not been declared
/usr/include/wx-2.8/wx/window.h:1112: error: 'WXWidget' does not name a type
/usr/include/wx-2.8/wx/window.h:1114: error: 'WXWidget' has not been declared
/usr/include/wx-2.8/wx/window.h:1209: error: field 'm_cursor' has incomplete type
/usr/include/wx-2.8/wx/window.h:1210: error: field 'm_font' has incomplete type
/usr/include/wx-2.8/wx/window.h:1211: error: field 'm_backgroundColour' has incomplete type
/usr/include/wx-2.8/wx/window.h:1212: error: field 'm_foregroundColour' has incomplete type
/usr/include/wx-2.8/wx/window.h:1219: error: field 'm_updateRegion' has incomplete type
/usr/include/wx-2.8/wx/window.h:556: error: 'wxNavigationKeyEvent' has not been declared
/usr/include/wx-2.8/wx/window.h: In member function 'const wxRegion& wxWindowBase::GetUpdateRegion() const':
/usr/include/wx-2.8/wx/window.h:755: error: 'm_updateRegion' was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function 'wxRegion& wxWindowBase::GetUpdateRegion()':
/usr/include/wx-2.8/wx/window.h:756: error: 'm_updateRegion' was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function 'const wxCursor& wxWindowBase::GetCursor() const':
/usr/include/wx-2.8/wx/window.h:844: error: 'm_cursor' was not declared in this scope
/usr/include/wx-2.8/wx/window.h: In member function 'wxWindow* wxWindowBase::GetGrandParent() const':
/usr/include/wx-2.8/wx/window.h:1526: error: invalid use of undefined type 'struct wxWindow'
/usr/include/wx-2.8/wx/utils.h:51: error: forward declaration of 'struct wxWindow'
/usr/include/wx-2.8/wx/toplevel.h: At global scope:
/usr/include/wx-2.8/wx/toplevel.h:118: error: invalid use of undefined type 'struct wxWindow'
/usr/include/wx-2.8/wx/utils.h:51: error: forward declaration of 'struct wxWindow'
/usr/include/wx-2.8/wx/toplevel.h:238: error: 'wxCloseEvent' has not been declared
/usr/include/wx-2.8/wx/toplevel.h:239: error: 'wxSizeEvent' has not been declared
/usr/include/wx-2.8/wx/toplevel.h:246: error: 'wxActivateEvent' has not been declared
/usr/include/wx-2.8/wx/toplevel.h:249: error: 'wxUpdateUIEvent' has not been declared
/usr/include/wx-2.8/wx/toplevel.h: In member function 'virtual bool wxTopLevelWindowBase::IsActive()':
/usr/include/wx-2.8/wx/toplevel.h:183: error: 'FindFocus' was not declared in this scope
/usr/include/wx-2.8/wx/toplevel.h: In member function 'virtual bool wxTopLevelWindowBase::IsVisible() const':
/usr/include/wx-2.8/wx/toplevel.h:235: error: 'IsShown' was not declared in this scope
/usr/include/wx-2.8/wx/toplevel.h: In member function 'virtual void wxTopLevelWindowBase::DoGetScreenPosition(int*, int*) const':
/usr/include/wx-2.8/wx/toplevel.h:273: error: 'DoGetPosition' was not declared in this scope
/usr/include/wx-2.8/wx/frame.h: At global scope:
/usr/include/wx-2.8/wx/frame.h:53: error: expected class-name before '{' token
/usr/include/wx-2.8/wx/sizer.h: In member function 'void wxSizerItem::SetMinSize(const wxSize&)':
/usr/include/wx-2.8/wx/sizer.h:285: error: invalid use of undefined type 'struct wxWindow'
/usr/include/wx-2.8/wx/utils.h:51: error: forward declaration of 'struct wxWindow'
lboxtest.cpp: At global scope:
lboxtest.cpp:104: error: invalid use of undefined type 'struct wxFrame'
/usr/include/wx-2.8/wx/utils.h:50: error: forward declaration of 'struct wxFrame'
lboxtest.cpp:113: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:114: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:115: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:116: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:117: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:118: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:119: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:122: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:124: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:125: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:126: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:127: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:129: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:130: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:131: error: 'wxMouseEvent' has not been declared
lboxtest.cpp:133: error: 'wxCommandEvent' has not been declared
lboxtest.cpp:135: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:136: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:137: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:138: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:139: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:140: error: 'wxUpdateUIEvent' has not been declared
lboxtest.cpp:173: error: ISO C++ forbids declaration of 'wxRadioBox' with no type
lboxtest.cpp:173: error: expected ';' before '*' token
lboxtest.cpp:176: error: ISO C++ forbids declaration of 'wxCheckBox' with no type
lboxtest.cpp:176: error: expected ';' before '*' token
lboxtest.cpp:181: error: ISO C++ forbids declaration of 'wxListBox' with no type
lboxtest.cpp:181: error: expected ';' before '*' token
lboxtest.cpp:185: error: ISO C++ forbids declaration of 'wxPanel' with no type
lboxtest.cpp:185: error: expected ';' before '*' token
lboxtest.cpp:189: error: ISO C++ forbids declaration of 'wxListBox' with no type
lboxtest.cpp:189: error: expected ';' before '*' token
lboxtest.cpp:193: error: ISO C++ forbids declaration of 'wxTextCtrl' with no type
lboxtest.cpp:193: error: expected ';' before '*' token
lboxtest.cpp:212: error: expected `)' before '*' token
lboxtest.cpp:262: error: ISO C++ forbids declaration of 'wxListBox' with no type
lboxtest.cpp:262: error: expected ';' before '*' token
lboxtest.cpp: In member function 'virtual void LboxLogger::DoLogString(const wxChar*, time_t)':
lboxtest.cpp:252: error: 'm_lbox' was not declared in this scope
lboxtest.cpp: In function 'wxAppConsole* wxCreateApp()':
lboxtest.cpp:273: error: cannot allocate an object of abstract type 'LboxTestApp'
lboxtest.cpp:92: note:   because the following virtual functions are pure within 'LboxTestApp':
/usr/include/wx-2.8/wx/app.h:89: note: 	virtual int wxAppConsole::OnRun()
lboxtest.cpp: At global scope:
lboxtest.cpp:279: error: incomplete type 'wxFrame' used in nested name specifier
lboxtest.cpp:280: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:281: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:282: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:283: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:284: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:285: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:286: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:288: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:290: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:291: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:292: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:293: error: 'wxCommandEventHandler' was not declared in this scope
lboxtest.cpp:295: error: 'EVT_TEXT_ENTER' was not declared in this scope
lboxtest.cpp:296: error: expected `}' before 'EVT_TEXT_ENTER'
lboxtest.cpp:296: error: expected ',' or ';' before 'EVT_TEXT_ENTER'
lboxtest.cpp:314: error: expected declaration before '}' token
make: *** [listbox_lboxtest.o] Error 1

snowsquirrel
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Dec 30, 2004 11:37 pm

Post by snowsquirrel » Sat May 03, 2008 1:41 pm

bump

Auria
Site Admin
Site Admin
Posts: 6695
Joined: Thu Sep 28, 2006 12:23 am
Contact:

Post by Auria » Sat May 03, 2008 3:10 pm

Can you try building wxWidgets from the source code? you don't even need to make install to check whether samples would then work

Post Reply