Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: References: Subject: Re: How to print out from DLL Date: Tue, 17 Feb 2004 17:54:09 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/