Code::Blocks not working?

This is a discussion on Code::Blocks not working? within the C++ Programming forums, part of the General Programming Boards category; This thread was deleted in the Forum Crash, but I am still very much lost. As I said previously, I ...

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    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
    Posts
    1,532
    Have you configured CB to use MinGW?
    Try disabling the debugger when you build, and see what happens.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  3. #3
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    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, 07: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, 07: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

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