This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ (v.3.1.1-4) -mno-cygwin with a hello world sample crashes oddly

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 <iostream>
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;

I guess this result isn't much better;)


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]