delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/17/11:54:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <004601c3f576$a9bb0d20$130210ac@pc19>
From: "Mikhail Bykanov" <bymi AT pactcorp DOT com>
To: <cygwin AT cygwin DOT com>
References: <loom DOT 20040217T112640-640 AT post DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 56 DOT 0402171112440 DOT 28780 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: How to print out from DLL
Date: Tue, 17 Feb 2004 17:54:09 +0100
MIME-Version: 1.0

Hi Igor,
Thank you for your answer. But I stil have a questions.
If I change the printf function in the DLL to the fprintf and print to the
file, then this programm works fine. If I change the file descriptor to the
stderr then I have again this problem - no printings. It looks like no
problem with msvcrt.dll but the problem with console output. When I compile
the application in the Cygwin I also use "-mno-cygwin" flag(I found it
later), but it does not help.
Ok I will try to compile my stuff under Cygwin with this flag, but I`m not
shure that it help me. Last time when I did it(without "-mno-cygwin flag) I
had big problem with select() function, whith works sometimes not correct in
multithreading application(may be in the single threading application too).

Best regards,
Mishel

> Cygwin programs use their own C runtime, which conflicts with msvcrt.dll
> used by Microsoft tools.  In short: without really nasty contortions, I
> doubt you'd be able to print from both a Cygwin program and a DLL compiled
> outside of Cygwin.  Either compile all your DLLs under Cygwin as well, or
> use the "-mno-cygwin" flag (which invokes the MinGW version of gcc).  Note
> that in the latter case, you will not get the full POSIX emulation that
> Cygwin provides, and your program will be a pure Windows program.
> Igor
> -- 
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor AT watson DOT ibm DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019