> > My program works in this way. However, after the cygwin1.dll was 
> > initialized, the I/O seemed to be redirected. How can I get my I/O
> > back?
> > I listed my codes below for reference.

> Does your CYGWIN environment variable include the string "tty"?

I set tty as CYGWIN's environment variable value, and the program works.
But the last new line character in the last printf() of foo() in 
module.dll doesn't work.
How to fix it?
Thanks

/* module.c */
#include <stdio.h>

int foo(int arg){
   printf("foo() is called in main.exe\n");
   printf("arg * 2 = %d\n", arg * 2);
   return arg * 2;
}


--
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/

Reply via email to