gcc simple program crashing

Hartmut Welpmann hartmut.welpmann@gmx.de
Sun Sep 7 11:24:00 GMT 2003

On Sun, 7 Sep 2003 01:00:17 -0700 (PDT), you wrote:

>  I wrote, compiled and ran a very simple program today that is
>producing the weirdest results.  I began googling the errors and came
>across multiple accounts of people experiencing the exact same
>behavior. The program is just a simple dos/unix line termination
>#include <stdio.h>
>int main (int argc, char *argv[])
>  int ch;
>  while ( (ch = getc(stdin)) && ! feof(stdin) ) {
>    if (ch == '\n') {
>      putc('\n',stdout);
>      putc('\r',stdout);
>    } else putc(ch,stdout);
>  }
>gcc -o filter.exe -c filter.c
>The errors:
>./filter.exe 8: Syntax error: EOF in backquote substitution


>Anyone know what is causing this behavior?  

You try to execute an object file, just remove the -c switch.

>Another poster with this
>problem was using g++ (GCC) 3.1.1 20020718 (prerelease):

If you had read the whole thread, you might have found the answer


Hartmut Welpmann

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/

More information about the Cygwin mailing list