This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: problem with dll and stdout
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Jaroslaw Pawlak <jpawlak at zeus dot polsl dot gliwice dot pl>
- Cc: cygwin at cygwin dot com
- Date: Tue, 9 Dec 2003 09:50:53 -0500 (EST)
- Subject: Re: problem with dll and stdout
- References: <20031209132317.B13511@zeus.polsl.gliwice.pl>
- Reply-to: cygwin at cygwin dot com
On Tue, 9 Dec 2003, Jaroslaw Pawlak wrote:
> hello, i have this problem, when i load dll written in cygwin to my
> program(made in VC) all stdout is lost. I read on this list's archiwe that
> it happens, but i never saw an solution. What to do to avoid loosing
> stdout???
> thanks in advance.
> Jarek
Don't mix Cygwin DLLs with VC++ ones. VC++ DLLs use MSVCRT as their C
runtime, and Cygwin DLLs use cygwin1.dll. This can create conflicts in
all sorts of areas, especially terminal access (output streams). You can
create a non-Cygwin DLL by passing the '-mno-cygwin' option to gcc.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/