Thread: Code::Blocks run problem

  1. #31
    Registered User
    Join Date
    Sep 2011
    Posts
    24
    Here you are!
    Code::Blocks run problem-code;blocks-jpg

  2. #32
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    No project == no compiler!

    See the differences between post 23 and yours...

    Start a new project, select the MinGw compiler... create a new source page, type in the hello world program... try again!

  3. #33
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Eh, that's the good part about Code::Blocks: you can actually compile a file, instead of creating a project and a makefile and all the rest of it. The OP has at some point pressed F2, and needs to press F2 so that ze can see the logs again. (Or go to View->Logs.)

  4. #34
    Registered User
    Join Date
    Sep 2011
    Posts
    24
    Logs are enabled already.

    And, what do you mean "selct the Mingw compiler"?

  5. #35
    Registered User
    Join Date
    Sep 2011
    Posts
    29
    Quote Originally Posted by Coga1900 View Post
    Logs are enabled already.

    And, what do you mean "selct the Mingw compiler"?
    I apologize if this is too much description. But as Tater says, "Select the Mingw Compier", ill try to show you with these screenshots of my own program.

    1. I assume you installed the codeblocks-10.05mingw-setup.exe
    (IT includes the GCC compiler and GDB debugger from MinGW as the sites says)

    2. Open Code blocks
    3. Go to settings --> Compiler and debugger.

    Code::Blocks run problem-2ndstep-jpg

    4. Toolchain executables.

    is there something in the "Compilers installation directory" ?

    If not, you should find the MinGW in the CodeBlock Folder and link to it.

    Code::Blocks run problem-3rdstep-jpg

    And now to create a projekt:

    1. FILE -> NEW -> Projekt

    2. Now find the "Console Application" and push the bottom "OK"

    3. Choose C++ and name your projekt.

    4. Now pick the GNU GCC Compiler.

    You should now have a Folder named Sources (Or something like that) In that folder your Main.cpp file is, try to "BUILD AND RUN" it.

    Doesnt it show you the "Hello World" now?
    Attached Images Attached Images Code::Blocks run problem-1ststep-jpg 
    Last edited by lovelace; 09-20-2011 at 04:20 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 17
    Last Post: 07-08-2011, 07:11 AM
  2. Help with code::blocks
    By Souradeep in forum C++ Programming
    Replies: 6
    Last Post: 12-22-2010, 03:48 AM
  3. compilation problem........code::blocks...
    By Souradeep in forum C++ Programming
    Replies: 3
    Last Post: 12-20-2010, 03:04 AM
  4. Code Blocks compiling problem
    By Lehsyrus in forum Tech Board
    Replies: 2
    Last Post: 07-13-2010, 02:28 PM
  5. Code::Blocks problem
    By eaane74 in forum C++ Programming
    Replies: 6
    Last Post: 05-24-2007, 07:24 PM