Thread: Code::Blocks not working?

  1. #1
    Registered User
    Join Date
    Feb 2010

    Code::Blocks not working?

    This thread was deleted in the Forum Crash, but I am still very much lost.

    As I said previously, I am a complete C++ novice. I recently downloaded Code::Blocks + MinGW per your suggestion. When I wrote the very first code and clicked Build + Run, it said "main.cpp - Debugger uses an invalid compiler. Nothing to be done."


    I'm using Windows XP, and it's on my external harddrive. I downloaded Code::Blocks without the MinGW first, and the uninstallation failed about halfway through, since C::B was still open. I deleted the folder to finish it. Since then I have redownloaded C::B + MinGW and uninstalled and reinstalled twice.

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Have you configured CB to use MinGW?
    Try disabling the debugger when you build, and see what happens.
    I just want to use my computer in a productive manner, not learn how to use it. Elysia
    A year spent in artificial intelligence is enough to make one believe in God. Alan Jay Perlis

  3. #3
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Make sure you have a recent version of gdb (Download here) in your MinGW/bin directory.

    If all else fails, install MinGW again via the installer available on Sourceforge.

    Configuring CB to use gcc: go to Settings->Compiler and Debugger, then go to "Global Compiler Settings" and find "toolchain executables." That ought to get you on the right foot.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function not working
    By sloopy in forum C Programming
    Replies: 31
    Last Post: 11-12-2005, 08:08 PM
  2. Program Not working Right
    By raven420smoke in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2005, 03:21 AM
  3. Trying to eject D drive using code, but not working... :(
    By snowfrog in forum C++ Programming
    Replies: 3
    Last Post: 05-07-2005, 07:47 PM
  4. x on upper right corner not working
    By caduardo21 in forum Windows Programming
    Replies: 1
    Last Post: 02-20-2005, 08:35 PM
  5. cygwin -> unix , my code not working properly ;(
    By CyC|OpS in forum C Programming
    Replies: 4
    Last Post: 05-18-2002, 04:08 AM