Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: "Dylan Cuthbert" Newsgroups: gmane.os.cygwin Subject: Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly Date: Sun, 21 Jul 2002 21:56:47 +0900 Lines: 74 Message-ID: References: <1465209200 DOT 20020721094429 AT familiehaase DOT de> <1821196999 DOT 20020721141056 AT familiehaase DOT de> NNTP-Posting-Host: pppa20.kyoto-ip.dti.ne.jp Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1027256080 19674 210.159.246.20 (21 Jul 2002 12:54:40 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Sun, 21 Jul 2002 12:54:40 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 That's very odd behaviour! What else is in your current directory? Is there a hiho.exe.exe? :-) Regards -- --------------------------------- Q-Games, Dylan Cuthbert. http://www.q-games.com "Gerrit P. Haase" wrote in message news:1821196999 DOT 20020721141056 AT familiehaase DOT de... > Hallo Dylan, > > Am Sonntag, 21. Juli 2002 um 12:58 schriebst du: > > > sounds like hiho is a script file or something there mate.. backquotes > > shouldn't exist in C++ programs.. and there aren't any in the program I > > included. > > It is the snippet you posted, not more and not less... just called it > hiho because we saw that 'test' may be a bad name. But it is really > interesting what happens if you use an executable and its name is > 'hiho' without the postfix .exe: > > $ g++ -mno-cygwin -c hiho.cpp -o hiho > > $ chmod a+x hiho > > $ ./hiho > ./hiho: 9: Syntax error: EOF in backquote substitution > > $ mv hiho hiho.exe > > $ ./hiho > bash: ./hiho: No such file or directory > > $ ./hiho.exe > bash: ./hiho.exe: No such file or directory > > $ ls -l hi* > -rwxrwxrwx 1 Administ Domänen- 222 Jul 21 14:05 hiho.cpp* > -rwxrwxrwx 1 gerrit Domänen- 1855 Jul 21 14:05 hiho.exe* > > $ cat hiho.cpp > #include > int main (int argc, char *argv[]) > { > int frog = 10; > int blob = 20; > for ( int i = 0; i < 10; i++ ) > { > std::cout << "hello world" << frog << " " << blob << std::endl; > frog += blob; > } > return(0); > } > > > I guess this result isn't much better;) > > > Gerrit > -- > =^..^= > > > -- > 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/ > > -- 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/