This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: cout/cerr in DLL?
- To: Mumit Khan <khan at xraylith dot wisc dot edu>
- Subject: Re: cout/cerr in DLL?
- From: Andreas Holzmann <Andreas dot Holzmann at informatik dot uni-dortmund dot de>
- Date: Wed, 18 Nov 1998 10:21:29 +0100
- Cc: Andreas Holzmann <Andreas dot Holzmann at cs dot uni-dortmund dot de>, gnu-win32 at cygnus dot com
- References: <19981117144547.19152.qmail@findmail.com> <9811172221.AA27631@modi.xraylith.wisc.edu>
On Tue, Nov 17, 1998 at 04:21:33PM -0600, Mumit Khan wrote:
> "Andreas Holzmann" <Andreas.Holzmann@cs.uni-dortmund.de> writes:
> > I tried to write a small example to generate
> > and load a DLL dynamically using the dlopen()
> > call which works fine using c and c++. But
> > when I use cout/cerr instead of printf() for
> > printing silly messages in the DLL my program
> > crashes? It says "handle_exceptions:
> > Exception: STATUS_ACCESS_VIOLATION"
>
> This is fixed in B20. If you're already running B20, and still see this
> problem, it's a bug and you need to post some code.
>
> BTW, please always post relevant info such as Cygwin Version, compiler
> version, etc when posting a problem report.
Uh, sorry, it's true, I forgot to write some more information :-(
I'm running B20 (gcc version egcs-2.91.57 19980901 (egcs-1.1 release))
I attached a small example that will not work.
Andreas
testit.tar.gz