Hello,
Here's the source:
#include
int main(){
/* local variable */
char name[25];
printf("What is your name?\n");
gets( name );
printf("Hello, %s!\n",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?
Thanks!
--
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
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/