Thread: Output from Code::Blocks Compiler

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    2

    Unhappy Output from Code::Blocks Compiler

    Hello,

    I am a beginner. After running my first program, I am unable to locate the output file and to view the output from the source code.

    I also wish to see the command window after debugging, indicating my output such as " Hello World"

    cheers
    Zilefac

  2. #2
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    If you're looking for an executable, you need to look in the Debug or Release folders of your project folder, depending on the target you built. If you just want to run the program, the green arrow ought to run the Debug build, if you have one.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    13
    Look at your projects output folder for your executable. In VC++ its usually at:

    ../Debug/ or
    ../Release/

    The code for displaying a "Hello World" message in your console application is:

    Code:
    #include <iostream>
    
    void main() 
    {
      std::cout << "Hello World" << endl;
    
      system("PAUSE"); // or std::cin.get(), whatever you like
    }

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    106
    Well when you press F9 in code::blocks it should run and show you the exe anyway but other than that the executable should be in the same folder path as the c++ file so find the source file and the .exe should be there

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    2
    Hi All, thanks for your meaningful help. I had it just as you said)))

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2d game
    By JordanCason in forum Game Programming
    Replies: 5
    Last Post: 12-08-2007, 10:08 PM
  2. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  3. Base converter libary
    By cdonlan in forum C++ Programming
    Replies: 22
    Last Post: 05-15-2005, 01:11 AM
  4. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 01:52 PM
  5. Compiler Design... Anyone That Can Help!
    By ComputerNerd888 in forum C++ Programming
    Replies: 3
    Last Post: 09-27-2003, 09:48 AM