Thread: compiling on codeblock

  1. #1
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267

    compiling on codeblock

    How do i compile a code on Codeblock or Visual c++ 2005 express edition? The compiler button on codeblock is always grey and i can't click on it and i can't find it on Visual c++ 2005.
    Last edited by h_howee; 12-22-2005 at 11:03 PM.

  2. #2
    Registered User
    Join Date
    Dec 2005
    Posts
    14
    I dont belive Visual C++ 2005 express edition compiles because it is free but there is a way save your project and go to the folder you saved it in and look for a folder in your project folder called debug then search the other folders you should come across your program
    C++ is me favorite!

  3. #3
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    Did you download Code::Blocks with the compiler?
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267
    I think i downloaded the 1 with mingw compiler

  5. #5
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Quote Originally Posted by cookie12
    I dont belive Visual C++ 2005 express edition compiles because it is free but there is a way save your project and go to the folder you saved it in and look for a folder in your project folder called debug then search the other folders you should come across your program
    of course it compiles, wouldn't be much use if it didn't.

    click on Build menu then build solution or you could press f7

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    IDE's normally need to be configured in some way to tell them where the various compilers are installed.

  7. #7
    Registered User
    Join Date
    Dec 2005
    Posts
    14
    oh i thought it didnt stupid me
    C++ is me favorite!

  8. #8
    Tropical Coder Darryl's Avatar
    Join Date
    Mar 2005
    Location
    Cayman Islands
    Posts
    503
    Quote Originally Posted by cookie12
    oh i thought it didnt stupid me
    Actually, if you have "certain" compilers install, when you install codeblocks, it does automatically configure for that compiler. Mingw is one as is MS toolkit compiler

  9. #9
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    It might be because of the bug with codeblocks...
    you have to create a project in order for the compile button to work...

  10. #10
    Registered User
    Join Date
    Dec 2005
    Location
    Canada
    Posts
    267
    thank you arjunajay

    how do i get rid of the "Press any key to continue..." at the end?

  11. #11
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > how do i get rid of the "Press any key to continue..." at the end?
    There's just no pleasing some people

    With other IDE's people complain that their screen windows disappear in an instant, so we tell them to read the FAQ on how to wait for a key press....

  12. #12
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    You can run your program from the command prompt.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie Compiling Problem
    By Deronius in forum C++ Programming
    Replies: 3
    Last Post: 06-15-2008, 11:23 AM
  2. Problem compiling files that store functions
    By tiachopvutru in forum C++ Programming
    Replies: 10
    Last Post: 05-30-2008, 05:42 PM
  3. Compiling Issues
    By pc_doctor in forum C Programming
    Replies: 3
    Last Post: 11-30-2007, 10:00 AM
  4. Code::Block question
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-11-2007, 01:14 AM
  5. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM