X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <20825507.post@talk.nabble.com> Date: Wed, 3 Dec 2008 17:29:07 -0800 (PST) From: C-Programmer To: cygwin AT cygwin DOT com Subject: Using -mno-cygwin causes different program behavior MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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/