The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    "Hello World" I need help!

    Discussion in 'Linux Compatibility and Software' started by graycolor, Feb 6, 2010.

  1. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    So I pretty much finished typing a hello world program and saved it on my desktop as a text file. How do I use the gcc command to compile my program.

    I've used this and I get an error.

    gcc -Wall -o Hello Hello.c

    This is my error here:
    gcc: Hello.c: No such file or directory
     
  2. graycolor

    graycolor Notebook Evangelist

    Reputations:
    30
    Messages:
    459
    Likes Received:
    0
    Trophy Points:
    30
    Haha it works I had to rename my original file as Hello.c

    I was missing the ".c" this thread can be closed now moderator.
     
  3. talin

    talin Notebook Prophet

    Reputations:
    4,694
    Messages:
    5,343
    Likes Received:
    2
    Trophy Points:
    205
  4. weinter

    weinter /dev/null

    Reputations:
    596
    Messages:
    2,798
    Likes Received:
    1
    Trophy Points:
    56
    Remember to execute Hello World you need ./
    In case you forgot.
     
  5. Charr

    Charr Notebook Deity

    Reputations:
    415
    Messages:
    1,564
    Likes Received:
    0
    Trophy Points:
    55
    Also, Linux is case sensitive about filenames.