compiler ignores what i wrote

This is a discussion on compiler ignores what i wrote within the C Programming forums, part of the General Programming Boards category; I used the codeblocks compiler to write a program. When i hit the build/run button, it took me to windows ...

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    38

    compiler ignores what i wrote

    I used the codeblocks compiler to write a program. When i hit the build/run button, it took me to windows command prompt and displayed ( Hello world! )... It just won't run anything i write.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Complete guess: you chose the "hello world!" project, opened up a new file, typed your program in the new file, and then didn't add the file to the project. Does one of your tabs in C::B have a program with "hello world" in it?

  3. #3
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by tabstop View Post
    Complete guess:
    Complete guess? I'm almost sure that's it...

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  4. #4
    Registered User
    Join Date
    Dec 2008
    Posts
    38
    Yeah. That was it... That was back before I understood almost anything about using a compiler. I was just starting to teach myself programming.

  5. #5
    Registered User
    Join Date
    May 2007
    Posts
    147
    I know this is a bump from some time ago, but the thread title had me in stitches.

    I know I've thought that many times in my early years.

  6. #6
    DESTINY BEN10's Avatar
    Join Date
    Jul 2008
    Location
    in front of my computer
    Posts
    804
    Quote Originally Posted by ashinms View Post
    I used the codeblocks compiler to write a program.
    can u please tell me what is a codeblocks compiler?
    HOPE YOU UNDERSTAND.......

    By associating with wise people you will become wise yourself
    It's fine to celebrate success but it is more important to heed the lessons of failure
    We've got to put a lot of money into changing behavior


    PC specifications- 512MB RAM, Windows XP sp3, 2.79 GHz pentium D.
    IDE- Microsoft Visual Studio 2008 Express Edition

  7. #7
    Registered User
    Join Date
    Dec 2008
    Posts
    38
    Quote Originally Posted by JVene View Post
    I know this is a bump from some time ago, but the thread title had me in stitches.

    I know I've thought that many times in my early years.
    Ha Ha. Yeah. I was saying that for about a half month.

  8. #8
    Registered User
    Join Date
    Dec 2008
    Posts
    38
    Codeblocks is the company that makes what i concider a very good compiler...

  9. #9
    Registered User
    Join Date
    Dec 2008
    Posts
    38
    <quote>
    can u please tell me what is a codeblocks compiler?
    </quote>
    It's the name of a company that makes what i concider to be a very good compiler.

  10. #10
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,302
    Code::Blocks is not a compiler; Code::Blocks is an IDE.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,020
    Nor is it a company.
    And there is no Code::Blocks compiler. The IDE is configured to use already available compilers such as GCC or VC++.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 05:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 12:07 PM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21