Mail Archives: cygwin/2004/02/17/11:54:36
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 -