From: Nathan F. <nf...@gr...> - 2006-10-11 17:02:15
|
I'm trying to help one of my users get jazz++ compiled and have a couple questions about it. I have wxWidgets-2.6 installed globally on my system, but the homepage seems to imply that you need wxWidgets-2.4. I didn't think it would be too much of an issue but am encountereing a lot of errors, so I'm wondering if the older version of wxWidgets is what I need. Specifically I had to add '#include "wx/dialog.h"' to src/xw_frame.cpp and also '#include "wx/xh_panel.h"' to src/xh_panel.cpp. This gets me partway through the build but then this happens. g++ -DHAVE_CONFIG_H -I. -I. -I../src -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -Iinclude -g -O2 -I/usr/lib/wx/include/gtk2-ansi-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -MT xmlres.lo -MD -MP -MF .deps/xmlres.Tpo -c xmlres.cpp -fPIC -DPIC -o .libs/xmlres.o xmlres.cpp:323: error: prototype for `void wxXmlResource::UpdateResources()' does not match any in class `wxXmlResource' /usr/include/wx-2.6/wx/xrc/xmlres.h:244: error: candidate is: bool wxXmlResource::UpdateResources() xmlres.cpp:323: error: `void wxXmlResource::UpdateResources()' and `bool wxXmlResource::UpdateResources()' cannot be overloaded xmlres.cpp:543: error: prototype for `wxObject* wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*)' does not match any in class `wxXmlResource' /usr/include/wx-2.6/wx/xrc/xmlres.h:256: error: candidate is: wxObject* wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*) xmlres.cpp: In member function `wxObject* wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*)': xmlres.cpp:544: error: `CreateResFromNode2' undeclared (first use this function) xmlres.cpp:544: error: (Each undeclared identifier is reported only once for each function it appears in.) xmlres.cpp: At global scope: xmlres.cpp:550: error: no `wxObject* wxXmlResource::CreateResFromNode2(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*)' member function declared in class `wxXmlResource' xmlres.cpp: In member function `wxObject* wxXmlResource::CreateResFromNode2(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*)': xmlres.cpp:569: error: call of overloaded `CreateResFromNode(wxXmlNode*, wxObject*&, wxObject*&)' is ambiguous /usr/include/wx-2.6/wx/xrc/xmlres.h:256: error: candidates are: wxObject* wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*, wxXmlResourceHandler*) xmlres.cpp:543: error: wxObject* wxXmlResource::CreateResFromNode(wxXmlNode*, wxObject*, wxObject*) xmlres.cpp: In constructor `wxXmlResourceHandler::wxXmlResourceHandler()': xmlres.cpp:640: error: class `wxXmlResourceHandler' does not have any field named `m_instanceAsWindow' xmlres.cpp: In member function `wxObject* wxXmlResourceHandler::CreateResource(wxXmlNode*, wxObject*, wxObject*)': xmlres.cpp:650: error: `m_instanceAsWindow' undeclared (first use this function) xmlres.cpp: At global scope: xmlres.cpp:955: error: prototype for `wxSize wxXmlResourceHandler::GetSize(const wxString&)' does not match any in class `wxXmlResourceHandler' /usr/include/wx-2.6/wx/xrc/xmlres.h:423: error: candidate is: wxSize wxXmlResourceHandler::GetSize(const wxString&, wxWindow*) xmlres.cpp: In member function `wxPoint wxXmlResourceHandler::GetPosition(const wxString&)': xmlres.cpp:990: error: call of overloaded `GetSize(const wxString&)' is ambiguous /usr/include/wx-2.6/wx/xrc/xmlres.h:423: error: candidates are: wxSize wxXmlResourceHandler::GetSize(const wxString&, wxWindow*) xmlres.cpp:955: error: wxSize wxXmlResourceHandler::GetSize(const wxString&) xmlres.cpp: At global scope: xmlres.cpp:997: error: prototype for `wxCoord wxXmlResourceHandler::GetDimension(const wxString&, int)' does not match any in class `wxXmlResourceHandler' /usr/include/wx-2.6/wx/xrc/xmlres.h:430: error: candidate is: wxCoord wxXmlResourceHandler::GetDimension(const wxString&, int, wxWindow*) make[1]: *** [xmlres.lo] Error 1 make[1]: Leaving directory `/opt/home/nathan/jazz/xrc' make: *** [all-recursive] Error 1 Any pointers? Thanks, Nathan |