Wal-Mart.com USA, LLC
Wal-Mart.com USA, LLC
Wal-Mart.com USA, LLC

Open Question: How to use GNU C Compile?

6 September 2010, 5:37 pm

Join Date: Sep 2010 Beans: 1 GNU C Compiler not working Hey guys. So I downloaded Linux just for the heck of it and decided I would try to learn some C in my spare time. So I found a tutorial, and the first code they told me to do was this: Code: #include int main() { printf( "I am alive! Beware.\n" ); getchar(); return 0; } So I copied it into gedit and saved it as "hello.c". Then I followed the instructions and opened up the Terminal and typed this: Code: gcc hello.c And this happens Code: sam@sam-desktop:~$ gcc hello.c sam@sam-desktop:~$ But when I go back to the file and screw it up by randomly erasing characters, it tells me what I did wrong. I have no idea why this won't work. I also am pretty bad at some of this complexer stuff (to me it's complex) and anywhere I look online elsewhere people talk as if everybody knows how to do these things.... Read More »

Wal-Mart.com USA, LLC