Thread: I keep getting "Hello World" when I run a program.

  1. #1
    Registered User
    Join Date
    Jul 2011
    Location
    Virginia
    Posts
    2

    I keep getting "Hello World" when I run a program.

    I brand new to Code Blocks. I am not posting any code here because I do not think the code is the problem. I am doing something wrong and do not understand why Code Blocks is calling and running the default "Hello World" program. When I close Code Block, reopen it, and then select my program, it runs fine. But when I click Empty File, enter code, click Build, then click Run, I get "Hello World."

  2. #2
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    When you create a new project, do you go to "file -> open -> main.c" (in the directory of the current project)?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Turn on Full Compiler Logging
    FAQ - CodeBlocks

  4. #4
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by Matticus View Post
    When you create a new project, do you go to "file -> open -> main.c" (in the directory of the current project)?
    Going on with this: make sure you are creating a new project, and not just adding to the default "Hello World" project.

  5. #5
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    I had such a problem some months ago, where my most recent changes weren't being automatically saved...in c::B.
    Are you adding the default hello world program...modifying it and compiling ...skipping the saving part..if it doesn't happen automatically?

  6. #6
    Registered User
    Join Date
    Jul 2011
    Location
    Virginia
    Posts
    2
    Thanks, everyone!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 10-25-2010, 11:43 PM
  2. I don't get "hello, world" program!
    By Ravens'sWrath in forum C Programming
    Replies: 12
    Last Post: 05-06-2007, 03:41 AM
  3. error after compiling "hello world" win program !
    By Meshal in forum Windows Programming
    Replies: 2
    Last Post: 12-01-2006, 01:53 PM
  4. "itoa"-"_itoa" , "inp"-"_inp", Why some functions have "
    By L.O.K. in forum Windows Programming
    Replies: 5
    Last Post: 12-08-2002, 08:25 AM
  5. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM

Tags for this Thread