public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Chris <Christine.Pourcelot@inria.fr>
To: "'wxwin-developers'"
	<wxwin-developers@wx.dent.med.uni-muenchen.de>,
	cygwin <cygwin@sourceware.cygnus.com>
Subject: troubles while building wxWindows/C++ Mingw executables using Cygwin
Date: Wed, 10 Mar 1999 01:46:00 -0000	[thread overview]
Message-ID: <36E64070.944A6B90@inria.fr> (raw)

Hi,
I'm trying to build wxWindows/C++ Mingw executables using Cygwin.
I've followed the instructions given by Mumit Khan :
 * got egcs-1.1.1-mingw-libs.tar.gz
 * installed the target libraries in /usr/local/mingw-libs
 * add -mno-cygwin to gcc -c
 * add -L/usr/local/mingw-libs to gcc -o
It works well with the small hello.c program (thanks Mumit, the tutorial
is clear and well done)

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 ":
__________________________________________________________________
gcc -c -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__
-D__GNUWIN32__ -D__WIN32__ -I/wx/include -I/wx/src/png
-I/wx/include/wx/msw/gnuwin32 -I/wx/src/zlib   -D__EGCS__ -mno-cygwin
-D__WXMSW__ -D__WINDOWS__ -ggdb -D__WXDEBUG__ -Wall   -o minimal.o
minimal.cpp
windres.exe -i minimal.rc -o minimal_resources.o --include-dir
/wx/include --define __WIN32__ --define __WIN95__ --define __GNUWIN32__
gcc -Wl,--subsystem,windows -mwindows -L/usr/local/mingw-libs -L/wx/lib 
-o minimal.exe minimal.o minimal_resources.o /wx/lib/libwx.a -lstdc++
-lgcc -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32
-ladvapi32 -loldnames   
/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: warning: cannot find
entry symbol _WinMainCRTStartup; defaulting to 00401000
/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)'
/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)'
/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
__________________________________________________________________
So, my question is :
Am I doing something wrong or should is it impossible to make
cross-compilation with wxWindows tools ?
Thank you

Christine

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

WARNING: multiple messages have this Message-ID
From: Chris <Christine.Pourcelot@inria.fr>
To: "'wxwin-developers'"
	<wxwin-developers@wx.dent.med.uni-muenchen.de>,
	cygwin <cygwin@sourceware.cygnus.com>
Subject: troubles while building wxWindows/C++ Mingw executables using Cygwin
Date: Wed, 31 Mar 1999 19:45:00 -0000	[thread overview]
Message-ID: <36E64070.944A6B90@inria.fr> (raw)
Message-ID: <19990331194500.kitPrKYpmfF7eniikYeP1Q-n_S8TSLT8k4wxId7rTuI@z> (raw)

Hi,
I'm trying to build wxWindows/C++ Mingw executables using Cygwin.
I've followed the instructions given by Mumit Khan :
 * got egcs-1.1.1-mingw-libs.tar.gz
 * installed the target libraries in /usr/local/mingw-libs
 * add -mno-cygwin to gcc -c
 * add -L/usr/local/mingw-libs to gcc -o
It works well with the small hello.c program (thanks Mumit, the tutorial
is clear and well done)

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 ":
__________________________________________________________________
gcc -c -D_X86_=1 -DWIN32 -D_WIN32 -DWINVER=0x0400 -D__WIN95__
-D__GNUWIN32__ -D__WIN32__ -I/wx/include -I/wx/src/png
-I/wx/include/wx/msw/gnuwin32 -I/wx/src/zlib   -D__EGCS__ -mno-cygwin
-D__WXMSW__ -D__WINDOWS__ -ggdb -D__WXDEBUG__ -Wall   -o minimal.o
minimal.cpp
windres.exe -i minimal.rc -o minimal_resources.o --include-dir
/wx/include --define __WIN32__ --define __WIN95__ --define __GNUWIN32__
gcc -Wl,--subsystem,windows -mwindows -L/usr/local/mingw-libs -L/wx/lib 
-o minimal.exe minimal.o minimal_resources.o /wx/lib/libwx.a -lstdc++
-lgcc -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32
-ladvapi32 -loldnames   
/cygnus/CYGWIN~1/H-I586~1/i586-cygwin32/bin/ld: warning: cannot find
entry symbol _WinMainCRTStartup; defaulting to 00401000
/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)'
/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)'
/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
__________________________________________________________________
So, my question is :
Am I doing something wrong or should is it impossible to make
cross-compilation with wxWindows tools ?
Thank you

Christine

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


             reply	other threads:[~1999-03-10  1:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-10  1:46 Chris [this message]
     [not found] ` < 36E64070.944A6B90@inria.fr >
1999-03-10  5:17   ` troubles while building wxWindows/C++ Mingw executables usin Vadim Zeitlin
     [not found]     ` < XFMail.990310141736.zeitlin@dptmaths.ens-cachan.fr >
1999-03-11 16:47       ` Mumit Khan
1999-03-31 19:45         ` Mumit Khan
1999-03-31 19:45     ` Vadim Zeitlin
1999-03-10 11:18   ` troubles while building wxWindows/C++ Mingw executables using Cygwin Mumit Khan
1999-03-31 19:45     ` Mumit Khan
1999-03-31 19:45 ` Chris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=36E64070.944A6B90@inria.fr \
    --to=christine.pourcelot@inria.fr \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=wxwin-developers@wx.dent.med.uni-muenchen.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).