www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Message-ID: | <20020721185338.65304.qmail@web10105.mail.yahoo.com> |
Date: | Sun, 21 Jul 2002 20:53:38 +0200 (CEST) |
From: | =?iso-8859-1?q?Sylvain=20Petreolle?= <spetreolle AT yahoo DOT fr> |
Subject: | Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly |
To: | cygwin AT cygwin DOT com |
In-Reply-To: | <20020721170010.GB1183@redhat.com> |
MIME-Version: | 1.0 |
This thread is not dead. The result of this shows that Cygwin can at the moment be told to execute code without having a correct executable file (also COFF format). Cygwin should have detected a non-executable file and have refused to launch it. What happens here on NT: if you use incorrect syntax by appending .exe in g++ cmd : $ g++ -mno-cygwin -c cpplus.cpp -o cpplus.exe ; g++ -mno-cygwin -c cpplus.cpp -o cpplus $ ls -l cpplus cpplus.exe -rw-r--r-- 1 Nom 544 1855 Jul 21 20:38 cpplus -rwxr-xr-x 1 Nom 544 1855 Jul 21 20:41 cpplus.exe finally tring to launch it: $ ./cpplus BASH: ./cpplus: Permission denied $ ./cpplus.exe runs and hangs. (note that under Windows ME it doesn't run,saying permission denied though it's detected as executable by ls). two problems: - ls should show non executable file (problem in cygwin filesystem /ls excutable detection routine) - incorrect code can be launched on NT systems. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |