From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vadim Zeitlin To: Chris Cc: cygwin , wxwin-developers Subject: RE: troubles while building wxWindows/C++ Mingw executables usin Date: Wed, 10 Mar 1999 05:17:00 -0000 Message-id: In-reply-to: < 36E64070.944A6B90@inria.fr > References: <36E64070.944A6B90@inria.fr> X-SW-Source: 1999-03/msg00322.html Hello, On 10-Mar-99 Chris wrote: > I'm also using wxWindows 2.0 and i've some troubles while linking some > samples. For example, I want to run the "minimal" sample and I get some > "undefined reference ": ... > /wx/lib/libwx.a(textctrl.o): In function > `wxTextCtrl::GLOBAL_$I$GetClassInfo(void) const': > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::xsputn(char const *, long)' > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::xsgetn(char *, long)' this might actually just mean that there are no such functions in Cygwin's version of C++ iostream library (I do believe they're standard - at least they're in the standard draft I have here). > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::sys_read(char *, long)' > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::sys_write(char const *, long)' The same here, except that these symbols don't seem to be standard. To work around these errors you might try to define NO_TEXT_WINDOW_STREAM for wxWindows compilation. > /usr/local/mingw-libs/libstdc++.a(iostream.o)(.text+0x18a9): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(iostream.o)(.text+0x18b7): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(streambuf.o)(.text+0x30c): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(stdstrbufs.o)(.text+0x2d): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x173): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x1de): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x232): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x343): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x3f6): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x539): more > undefined references to `_errno' follow > /usr/local/mingw-libs/libstdc++.a(floatconv.o)(.text+0x12e7): undefined > reference to `__imp__HUGE_dll' > /usr/local/mingw-libs/libstdc++.a(floatconv.o)(.text+0x145a): undefined > reference to `_errno' > collect2: ld returned 1 exit status > make: *** [minimal.exe] Error 1 No idea about these. > So, my question is : > Am I doing something wrong or should is it impossible to make > cross-compilation with wxWindows tools ? There is no reason it shouldn't be possible. It would be interesting to hear whether you succeed with it finally and what had you to change to do it. Good luck! VZ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vadim Zeitlin To: Chris Cc: cygwin , wxwin-developers Subject: RE: troubles while building wxWindows/C++ Mingw executables usin Date: Wed, 31 Mar 1999 19:45:00 -0000 Message-ID: References: <36E64070.944A6B90@inria.fr> X-SW-Source: 1999-03n/msg00322.html Message-ID: <19990331194500.BXCjH-y0fgYtCCWGRIU7nv_wgo7oPp9VvudLpomlPYg@z> Hello, On 10-Mar-99 Chris wrote: > I'm also using wxWindows 2.0 and i've some troubles while linking some > samples. For example, I want to run the "minimal" sample and I get some > "undefined reference ": ... > /wx/lib/libwx.a(textctrl.o): In function > `wxTextCtrl::GLOBAL_$I$GetClassInfo(void) const': > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::xsputn(char const *, long)' > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::xsgetn(char *, long)' this might actually just mean that there are no such functions in Cygwin's version of C++ iostream library (I do believe they're standard - at least they're in the standard draft I have here). > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::sys_read(char *, long)' > /wx/src/msw/textctrl.cpp:71: undefined reference to > `streambuf::sys_write(char const *, long)' The same here, except that these symbols don't seem to be standard. To work around these errors you might try to define NO_TEXT_WINDOW_STREAM for wxWindows compilation. > /usr/local/mingw-libs/libstdc++.a(iostream.o)(.text+0x18a9): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(iostream.o)(.text+0x18b7): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(streambuf.o)(.text+0x30c): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(stdstrbufs.o)(.text+0x2d): undefined > reference to `__imp__iob' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x173): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x1de): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x232): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x343): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x3f6): undefined > reference to `_errno' > /usr/local/mingw-libs/libstdc++.a(fileops.o)(.text+0x539): more > undefined references to `_errno' follow > /usr/local/mingw-libs/libstdc++.a(floatconv.o)(.text+0x12e7): undefined > reference to `__imp__HUGE_dll' > /usr/local/mingw-libs/libstdc++.a(floatconv.o)(.text+0x145a): undefined > reference to `_errno' > collect2: ld returned 1 exit status > make: *** [minimal.exe] Error 1 No idea about these. > So, my question is : > Am I doing something wrong or should is it impossible to make > cross-compilation with wxWindows tools ? There is no reason it shouldn't be possible. It would be interesting to hear whether you succeed with it finally and what had you to change to do it. Good luck! VZ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com