How do you setup Eclipse to work with C++?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaStA
    New Member
    • Feb 2007
    • 7

    How do you setup Eclipse to work with C++?

    Hello,

    I am trying to setup Eclipse once again to work for compiling C++. I have followed several guides and still have had no luck. I get an error of launch failed no binaries when I try to compile code.

    I also have 2 warnings that are showing up which are as follows:

    Error launching external scanner info generator (g++ -E -P -v -dD C:/Users/Jared/workspace/.metadata/.plugins/org.eclipse.cdt .make.core/specs.cpp)

    Error launching external scanner info generator (gcc -E -P -v -dD C:/Users/Jared/workspace/.metadata/.plugins/org.eclipse.cdt .make.core/specs.c)

    I miss using this program and hopefully someone can help me in here. :) I feel like I have tried everything, but there must be something I missed.

    Thank you,
    Jared
  • epots9
    Recognized Expert Top Contributor
    • May 2007
    • 1352

    #2
    did u download and install Eclipse IDE for C/C++ Developers?

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by epots9
      did u download and install Eclipse IDE for C/C++ Developers?
      I guess s/he did otherwise Eclipse wouldn't be trying to launch a GNU compiler.
      My guess is that the OP didn't install a version of the GNU compiler suite. MinGW
      is a valid option to install.

      kind regards,

      Jos

      Comment

      • MaStA
        New Member
        • Feb 2007
        • 7

        #4
        I've tried everything you all just said. Yes I'm using the IDE for C++. I installed MinGW. I tried changing some options within eclipse, but had no luck.

        I think the program is looking for something and isn't finding it. Maybe an environment that needs to be added? I'm not sure, but for a clean install of the eclipse program and for it to function what must be done from scratch? If you install MinGW do you need to do anything within eclipse for it to know that is what it's supposed to be using? Would using Vista x64 have anything to do with the problem? I wouldn't think so, but I figured I would add that. I think I was having the same issues with Vista x86 anyhow.

        Thanks,
        Jared

        Comment

        • Nepomuk
          Recognized Expert Specialist
          • Aug 2007
          • 3111

          #5
          Possibly following theese Instructions might help, even if you're using a GNU compiler. I guess, it's worth trying...

          Comment

          • MaStA
            New Member
            • Feb 2007
            • 7

            #6
            Originally posted by nepomuk
            Possibly following theese Instructions might help, even if you're using a GNU compiler. I guess, it's worth trying...
            I will give another one of those links showing how to set it up a shot. Found one with pictures and all so it should...be fairly simple.

            Thanks!

            Jared

            Comment

            • MaStA
              New Member
              • Feb 2007
              • 7

              #7
              Well I still get the no binaries error. I have now found it is because there is no binary folder under the project I create. I have gone through the troubleshooting on this one site for that problem, but still cannot get one up.

              I downloaded the Eclipse IDE for C/C++ Developers and extracted that. It doesn't say you need to have Eclipse Classic first, but do you? It seems you should be able to just download the IDE for C++ and extract that and it work fine. I have done all of the following as well:

              Installed the CDT

              Installed (not just downloaded) MinGW

              Installed (not just downloaded) MSYS

              Set up your path environment variable

              It looks like the two warnings I was getting are now gone though :)

              Thanks,
              Jared

              Comment

              Working...