stephen@frank:~$ gcc -x c - << 'EOF' > #include> > int main(int argc, char **argv) > { > printf("Hello World!\n"); > return 0; > } > EOF
Monday, November 17, 2008
IDEs are for Wimps
Subscribe to:
Post Comments (Atom)
Stephen English's blog - my CV is available for download here.
stephen@frank:~$ gcc -x c - << 'EOF' > #include> > int main(int argc, char **argv) > { > printf("Hello World!\n"); > return 0; > } > EOF
1 comments:
Not quite sure why, but I felt compelled to tell you that you can do this without << etc:
gcc -x c -
#include <stdio.h>
int main(int a, char** b)
{
printf("Hi\n");
return 0;
}
Ctrl-D
Post a Comment