New to programing

This is a discussion on New to programing within the C++ Programming forums, part of the General Programming Boards category; Ok I am a fresh mind in the world of programing, and already I have hit and error message. I ...

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    New to programing

    Ok I am a fresh mind in the world of programing, and already I have hit and error message. I haven't even got to make or run any code at all the first code that Code::Blocks came with gets this error message that says the debugg executable is not set and where it tells me to set it i can not find. Some please help me.

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    what does it say exactly?

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    5
    exacltly that it says:

    The debugger executable is not set
    To set it go to "Settings/Compiler and Debugger", switch to the
    "programs" tab,
    And select debugger program

    So I went there but I can't fine the programns tab. Like i said all i wanted to run was code that should be complet i haven't even tampered with it.

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
        cout << "Hello world!" << endl;
        return 0;
    }

  4. #4
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    no, the code is fine so dont worry about that, i dont have it on this computer though so i will have to check later unless someone helps in the meantime, it is probably just a simple setup thing but saying that, this rings a bell with me and i am sure i had this problem myself and simply rebooted to solve...there are some bugs in codeblocks, the version i have throws the odd one anyhow, also have you googled to see if this is a known error with the installation?? google will probably solve this issue for you amigo mio

  5. #5
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    The debugger executable is not set
    To set it go to "Settings/Compiler and Debugger", switch to the
    "programs" tab,
    And select debugger program
    Yeah, those are old instructions.
    You have to pick the tab "toolchain executables" to set the debugger. I assume since you got this message, you're using Windows, and that means you'll have to find and download gdb, and put it in the right folder, then pick it from that tab... it's really a pain in the behind.

    For someone new to programming, especially in Windows, MinGW can be a big cognitive leap. For the time being, you probably won't need a debugger, so just check the option at:

    Build -> Set Target -> Release

    This is the quickest solution, even if it isn't necessarily "kosher".

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    5
    ok so I did just that and it still wants me to set a debugger. If u think that MinGW would be to advance what would u sugest I started out on?

  7. #7
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    code:blocks should work just fine for you, i had no issues whatsoever with it really apart from as i say, the odd little bug,
    dont worry at all about the mingw, you will be able to get started coding right away no problem, as you can see, when you select a console application the sample code included is the universal simple 'hello world' example, so that tells you nothing to be concerned about...erm...
    It sounds like you have downloaded the version that does not include a debugger, but your project options are expecting one.
    try this link and choose the setup.exe that also has mingw in the title >
    save to your PC then execute from there.
    codeblocks download

  8. #8
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,014
    If you download the mingw-version from the the link above, it should work out of the box. Just install, compile and run. Hopefully.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  9. #9
    Registered User
    Join Date
    Mar 2010
    Posts
    5
    I downloaded the mingw verstion but I'm still geting the same message with the deafault code. I am runing windows vista if that might be causeing some issues.

  10. #10
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    if you read the instructions on the download link you will see that yes, this is most definitely going to be the problem, the codeblocks people advise there are compatibility issues :

    NOTE: The codeblocks-8.02mingw-setup.exe file includes the GCC compiler and GDB debugger from MinGW.

    NOTE: The compiler included in codeblocks-8.02mingw-setup.exe does not work reliable on Windows Vista. Please do not use it and install a more recent one from MinGW. That is because at the time Code::Blocks was released there was no working GCC for Windows Vista available.
    Last edited by rogster001; 03-04-2010 at 02:57 AM.

  11. #11
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,014
    I have never any any problems when using Code::Blocks on Vista/7. The mingw installation has always been an all-in-one package ready to go. At least for me.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  12. #12
    Registered User
    Join Date
    Mar 2010
    Posts
    5
    ok but I'm not exactly sure what I should be downloading and where I should be puting it so that it will work properly

  13. #13
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,438
    it should just as already stated work 'right out of the box' literally just double click the installer, just proceed along clicking 'next' where appropriate, do not change any options just use defaults for all.

    Failing that i have found this link that should help get you going.... vista o vista...was there any point....microsoft greedy guts i say.

    heres the info >

    installing MinGW with Vista

    codeblocks is ace, its worth the hassle you are having!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C programing for DNA...
    By S16 in forum C Programming
    Replies: 9
    Last Post: 04-29-2009, 10:25 AM
  2. Programing microcontrollers in c
    By gorabhat in forum C Programming
    Replies: 2
    Last Post: 09-09-2008, 11:40 AM
  3. Windows Programing
    By gadu in forum C Programming
    Replies: 4
    Last Post: 07-15-2008, 07:25 AM
  4. Human brain and programing
    By avgprogamerjoe in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 08-27-2007, 05:48 PM
  5. Linux Network Programing
    By Unregistered in forum Linux Programming
    Replies: 2
    Last Post: 07-27-2002, 07:08 AM

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