delorie.com/archives/browse.cgi | search |
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 <mring111 AT yahoo DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Using -mno-cygwin causes different program behavior |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 <stdio.h> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |