From: Geoff N. <ge...@gn...> - 2004-10-21 05:22:08
|
Top post because the message is long and I think it is fixed. Apparently you need to edit the wxWindows-2.4.2/src/makeg95.env and change the MINGW32=1 to MINGW32=0 when using cygwin. I am not sure if it actually fixed the problem because I can't compile the wx iaxclient (I will start a new thread for that), but I can compile the sample minimal application under wxWindows-2.4.2/samples/minimal. Geoff iax...@li... wrote: > I am trying to compile iaxclient from source. > > I am running WinXP SP2 using Cygwin. > > I have installed WxWindows-2.4.2, MinGW, Cygwin with the dev > tools. I went > through the readme files with iaxclient, and WxWindows. I > tried installing > the MinGW using the download from www.mingw.org, and also > using the MinGW > within Cygwin. I have the WXWIN variable set with the > forward slashes. > When I do a "cd $WXWIN" it moves to the correct folder. > > Anyone having any pointers to get past this step. > > This is what happens when I try to run: > > $ make -f makefile.g95 > g++ -c -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -I../../lib/mswd > -I../../include -I../../contrib/include -I../../src/regex > -I../../src/png > -I../../src/jpeg -I../../src/zlib -I../../src/tiff -DSTRICT > -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ -g -D__WXDEBUG__ > -Wall -fno-rtti > -fno-exceptions -o ../../src/msw/dde.o ../../src/msw/dde.cpp > In file included from ../../include/wx/platform.h:88, > from ../../include/wx/defs.h:23, > from ../../include/wx/wxprec.h:13, > from ../../src/msw/dde.cpp:25: > ../../include/wx/chkconf.h:734:17: #error > "wxUSE_PROTOCOL_FTP/HTTP requires > wxUSE_SOCKETS" > ../../include/wx/chkconf.h:1053:13: #error "wxCalendarCtrl requires > wxSpinButton and wxComboBox" In file included from > ../../include/wx/wxprec.h:13, from > ../../src/msw/dde.cpp:25: ../../include/wx/defs.h:555:10: #error > "Please define a 32 bit type" In file included from > ../../include/wx/app.h:24, from > ../../src/msw/dde.cpp:35: ../../include/wx/event.h:837: error: parse > error before `)' token ../../include/wx/event.h: In member function > `bool wxKeyEvent::ControlDown() > const': > ../../include/wx/event.h:823: error: `m_controlDown' > undeclared (first use > this function) > ../../include/wx/event.h:823: error: (Each undeclared > identifier is reported > only once for each function it appears in.) > ../../include/wx/event.h: In member function `bool > wxKeyEvent::MetaDown() > const > ': > ../../include/wx/event.h:824: error: `m_metaDown' undeclared (first > use this function) > ../../include/wx/event.h: In member function `bool > wxKeyEvent::AltDown() > const > ': > ../../include/wx/event.h:825: error: `m_altDown' undeclared (first > use this function) > ../../include/wx/event.h: In member function `bool > wxKeyEvent::ShiftDown() > const': > ../../include/wx/event.h:826: error: `m_shiftDown' undeclared (first > use this > function) > ../../include/wx/event.h: In member function `int > wxKeyEvent::GetKeyCode() > const': > ../../include/wx/event.h:834: error: `m_keyCode' undeclared (first > use this function) > $ > ../../include/wx/event.h:840: error: ISO C++ forbids defining > types within > return type > ../../include/wx/event.h:840: error: syntax error before `(' token > ../../include/wx/event.h:844: error: non-member function `void > GetPosition(wxCoord*, wxCoord*)' cannot have `const' > method qualifier > ../../include/wx/event.h: In function `void GetPosition(wxCoord*, > wxCoord*)': ../../include/wx/event.h:845: error: `m_x' undeclared > (first use this function) ../../include/wx/event.h:846: error: `m_y' > undeclared (first use this function) ../../include/wx/event.h: At > global scope: ../../include/wx/event.h:851: error: non-member > function `void GetPosition(long > > int*, long int*)' cannot have `const' method qualifier > ../../include/wx/event.h:858: error: non-member function `wxPoint > GetPosition() ' cannot have `const' method qualifier > ../../include/wx/event.h:861: error: non-member function `wxCoord > GetX()' cannot have `const' method qualifier > ../../include/wx/event.h:864: error: non-member function `wxCoord > GetY()' cannot have `const' method qualifier > ../../include/wx/event.h:867: error: non-member function `long int > KeyCode()' cannot have `const' method qualifier > ../../include/wx/event.h:869: error: virtual outside class declaration > ../../include/wx/event.h:869: error: non-member function `wxEvent* > Clone()' cannot have `const' method qualifier > ../../include/wx/event.h: In function `wxEvent* Clone()': > ../../include/wx/event.h:869: error: invalid use of `this' in > non-member function > ../../include/wx/event.h:869: error: cannot allocate an > object of type ` > wxKeyEvent' > ../../include/wx/event.h:869: error: because the following virtual > functions are abstract: > ../../include/wx/event.h:372: error: virtual wxEvent* > wxEvent::Clone() const > ../../include/wx/event.h: At global scope: > ../../include/wx/event.h:874: error: `wxKeyEvent& operator=(const > wxKeyEvent&)' > > must be a nonstatic member function > ../../include/wx/event.h:874: error: `wxKeyEvent& operator=(const > wxKeyEvent&)' > > must take exactly two arguments > ../../include/wx/event.h: In function `wxKeyEvent& operator=(const > wxKeyEvent&) ': > ../../include/wx/event.h:875: error: 'const class wxKeyEvent' > has no member > named 'm_x' > ../../include/wx/event.h:876: error: 'const class wxKeyEvent' > has no member > named 'm_y' > ../../include/wx/event.h:878: error: 'const class wxKeyEvent' > has no member > named 'm_keyCode' > ../../include/wx/event.h:880: error: 'const class wxKeyEvent' > has no member > named 'm_controlDown' > ../../include/wx/event.h:881: error: 'const class wxKeyEvent' > has no member > named 'm_shiftDown' > ../../include/wx/event.h:882: error: 'const class wxKeyEvent' > has no member > named 'm_altDown' > ../../include/wx/event.h:883: error: 'const class wxKeyEvent' > has no member > named 'm_metaDown' > ../../include/wx/event.h:884: error: `m_scanCode' undeclared (first > use this function) > ../../include/wx/event.h:884: error: 'const class wxKeyEvent' > has no member > named 'm_scanCode' > ../../include/wx/event.h:885: error: `m_rawCode' undeclared (first > use this function) > ../../include/wx/event.h:885: error: 'const class wxKeyEvent' > has no member > named 'm_rawCode' > ../../include/wx/event.h:886: error: `m_rawFlags' undeclared (first > use this function) > ../../include/wx/event.h:886: error: 'const class wxKeyEvent' > has no member > named 'm_rawFlags' > ../../include/wx/event.h:888: error: invalid use of `this' in > non-member function > ../../include/wx/event.h: At global scope: > ../../include/wx/event.h:891: error: parse error before `public' > ../../include/wx/event.h:894: error: `long int m_keyCode' > used prior to > declaration > ../../include/wx/event.h:896: error: `bool m_controlDown' > used prior to > declaration > ../../include/wx/event.h:897: error: `bool m_shiftDown' used prior to > declaration ../../include/wx/event.h:898: error: `bool m_altDown' > used prior to declaration ../../include/wx/event.h:899: error: `bool > m_metaDown' used prior to declaration > ../../include/wx/event.h:900: error: `bool m_scanCode' used prior to > declaration ../../include/wx/event.h:910: error: 'wxUint32' is used > as a > type, but is > not > defined as a type. > ../../include/wx/event.h:911: error: 'wxUint32' is used as a > type, but is > not > defined as a type. > ../../include/wx/event.h:913: error: parse error before `private' > ../../include/wx/event.h:914: error: virtual outside class declaration > ../../include/wx/event.h:914: error: non-member function `wxClassInfo* > GetClassInfo()' cannot have `const' method qualifier > ../../include/wx/event.h: In function `wxClassInfo* GetClassInfo()': > ../../include/wx/event.h:914: error: `sm_classwxKeyEvent' is > not a member of > type `wxKeyEvent' > ../../include/wx/event.h: At global scope: > ../../include/wx/event.h:915: error: parse error before `}' token > In file included from ../../include/wx/window.h:1094, > from ../../include/wx/app.h:27, > from ../../src/msw/dde.cpp:35: > ../../include/wx/msw/window.h:479: error: invalid return type > for member > function `wxKeyEvent wxWindow::CreateKeyEvent(int, int, long int, > unsigned int) const' > ../../include/wx/msw/window.h:479: error: since type `wxKeyEvent' > has abstract virtual functions > make: *** [../../src/msw/dde.o] Error 1 > > > > Geoff > > |