[Courses] hello world program

Erin Mulder meara99 at yahoo.com
Fri Feb 8 14:40:19 EST 2002


How does it not work?  Are you getting an error? ...or just not seeing
the expected output?

(Once you've compiled, it should put an executable called "hello" in the
same directory.   You should be able to type "hello" to run that and it
should print "Hello World".)

Cheers,
Erin
  ----- Original Message ----- 
  From: Janet Vincent 
  To: courses at linuxchix.org 
  Sent: Friday, February 08, 2002 1:35 PM
  Subject: [Courses] hello world program


  Hi Everyone,

  Ok I am already confused. The book says to mkdir hello then cd hello open an editor so I opened vim and type the following

  #include <stdio.h>
  int main()
  {
      printf ("Hello World\n");
      return (0);
  }

  that's it. then compile the code with cc -g -ohello hello.c

  I did this and it doesn't work. Do you have to have a line at the top to make it work like with shell scripting? Or is that something just understood and I missed it? I am using mandrake 8.1 and I'm not sure what I am doing wrong.

  Thanks for your help. I hope to get this stuff soon.

  Janet (-:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linuxchix.org/pipermail/courses/attachments/20020208/a8b3633b/attachment.xhtml


More information about the Courses mailing list