Like Tree1Likes

Code::Blocks run problem

This is a discussion on Code::Blocks run problem within the C++ Programming forums, part of the General Programming Boards category; Here you are!...

  1. #31
    Registered User
    Join Date
    Sep 2011
    Posts
    24
    Here you are!
    Name:  code;blocks.jpg
Views: 466
Size:  62.5 KB

  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,185
    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.

    Name:  2ndstep.jpg
Views: 5494
Size:  63.1 KB

    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.

    Name:  3rdstep.jpg
Views: 478
Size:  70.5 KB

    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  
    Last edited by lovelace; 09-20-2011 at 04:20 AM.

Page 3 of 3 FirstFirst 123
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, 02:48 AM
  3. compilation problem........code::blocks...
    By Souradeep in forum C++ Programming
    Replies: 3
    Last Post: 12-20-2010, 02: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

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