Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  $ echo 'Fuck you!' > fuck_you.c; gcc fuck_you.c
  fuck_you.c:1:1: error: unknown type name ‘Fuck’
  fuck_you.c:1:9: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘!’ token


Don't bother, gcc is grumpy as hell.


No need for the temporary file:

    $ echo 'Fuck you!' | gcc -xc


I guess in OS X, gcc redirects to clang. clang gives me:

    clang: error: no input files




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: