Using -mno-cygwin causes different program behavior
Thu Dec 4 01:29:00 GMT 2008
Here's the source:
/* local variable */
printf("What is your name?\n");
gets( name );
If I compile using the following command line argument:
$ gcc -o ioProg1 ioProg1.c
I check to see which DLL it's using which of course is cygwin1.dll and the
program works as expected.
But if I compile using the following command line argument:
$ gcc -mno-cygwin -o ioProg1 ioProg1.c
I find that the DLL being used is msvcrt.dll and the program behaves as if
the gets( name ); line had come before the printf("What is your name?");
line. Very strange!
Any ideas on why this is happening?
View this message in context: http://www.nabble.com/Using--mno-cygwin-causes-different-program-behavior-tp20825507p20825507.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin