Thread: problem with codeblocks

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    18

    problem with codeblocks

    when i try to run my project it says "project debug uses an invalid compiler.probably the tool chain path within the compiler options is not setup correctly....skipping...nothing to be done".the thing is, i made this project using codeblocks and after sometime, instaed of running the project, it opened the header files and tried to run them instead, so i reinstalled it..

  2. #2
    Registered User
    Join Date
    Nov 2011
    Location
    Saratoga, California, USA
    Posts
    334
    Did you download CodeBlocks with MinGW or just CodeBlocks? Or are you going to use a compiler other than MinGW?

  3. #3
    Registered User
    Join Date
    Dec 2011
    Posts
    18
    with MinGW.

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Read this thread on Code::Blocks
    Toolchain path not setup correctly

    Fixes some of the people; the others tend to fail to respond to what fixes there problem.

    Things to check listed in the order that seems logical to me.

    1. Verify you have a Compiler installed; NOTE Code::Blocks is NOT a compiler
    2. Verify the toolchain of the Installed Compiler
    3. Verify the project you are compiler is really using the Compiler you have installed



    Tim S.
    Last edited by stahta01; 01-03-2012 at 01:32 PM.

  5. #5
    Registered User
    Join Date
    Dec 2011
    Posts
    18
    thanks. this solved the debugging problem. but now it runs stdio.h and debugs it...it wasnt like this before.

  6. #6
    Registered User
    Join Date
    Jan 2012
    Posts
    26
    I tried using code::blocks with minGW also, I downloaded the entire GCC, spent an hour or two trying to figure out how to use it, then found minGW. Now I can only run programs outside of code::blocks 50% of the time since it seems like the compiler doesn't like taking compiler flags from the xml script inside of code::blocks.

  7. #7
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    @seanJ:

    Read the Code::Blocks FAQ and turn on full compiler logging.

    FAQ-Compiling (errors) - CodeBlocks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with codeblocks
    By SilverClif in forum Windows Programming
    Replies: 6
    Last Post: 05-24-2011, 05:12 AM
  2. using codeblocks
    By torquemada in forum Tech Board
    Replies: 7
    Last Post: 04-20-2011, 08:57 PM
  3. Codeblocks.
    By Kitt3n in forum C++ Programming
    Replies: 5
    Last Post: 05-16-2010, 01:50 PM
  4. problem with codeblocks
    By gnanasenthil654 in forum C++ Programming
    Replies: 2
    Last Post: 08-10-2009, 02:30 AM
  5. Problem With std::string in Codeblocks.
    By ThLstN in forum C++ Programming
    Replies: 4
    Last Post: 08-24-2008, 11:01 AM