Thread: Uh-Oh..... please help, i'm new and am a bit confused....

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    13

    Uh-Oh..... please help, i'm new and am a bit confused....

    can you please help me?
    my problem is that i have downloaded Code Blocks, my first ever GUI application and i can't build it!

    i haven't altered anything, i just loaded up the template and when i tried to compile i got this error:

    Switching to target: default
    Compiling: main2.cpp
    mingw32-g++.exe: installation problem, cannot exec `cc1plus': No such file or directory
    Process terminated with status 1 (0 minutes, 0 seconds)
    0 errors, 0 warnings

    please help....

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Here is one of several threads that discuss this particular problem - I found it by entereing "exec cc1plus" in the search.

    It appears that you have to install mingw-gcc as a separate package as far as I understood the posts.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    thanks... where would i find the mingw-gcc?

    if you don't know don't fret, i'll sort it out some how

    thanks anyway

    uberverse

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    oh, thanks, yeh my Devc++ one done what that guys did also, i'll see what i can do thanks again

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    however i'd like to continue with code blocks if you can help?

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    You can get mingw-gcc here:
    http://sourceforge.net/project/showf...?group_id=2435

    I'd recommend that you go with the "automatic install", rather than one of the specialized packages.

    code::blocks and Dev-C++ use the same compiler tool, they are just differnet IDE variants on top of the compiler, so getting the compiler through either route should be fine. You _may_ need to set up the path to mingw-gcc and it's components somewhere in code::blocks, but other than that, it should work with the same compiler for both.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  7. #7
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    thanks

  8. #8
    Registered User
    Join Date
    Nov 2007
    Posts
    13
    right, i just put it in the code blocks folder, should be okay yeh?
    and thanks again by the way

  9. #9
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Uberverse View Post
    right, i just put it in the code blocks folder, should be okay yeh?
    and thanks again by the way
    To be honest, I don't know "code::blocks" wants it. But anywhere it can be "found" by code::blocks would be good.

    I personally try to install each software package in a separate place, in case I need to re-install or upgrade, I don't have to remember which other components went into the same place.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Did you just get the code::blocks IDE, or the complete package which also comes with the MinGW compiler already set up to work with the IDE?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed