Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Problem with the Build(Problem with Building and Running and Debugging)
Problem with the Build [message #677283] Wed, 08 June 2011 02:51 Go to next message
suriname0  is currently offline suriname0 Friend
Messages: 3
Registered: June 2011
Junior Member
I'm a new user of Eclipse (hope I've gotten the right forum). I downloaded the "Eclipse IDE for C/C++ Developers, 86 MB" for my MacBook Pro: Mac OS X, Version 10.6.7, hopefully I did that right. Eclipse opens successfully, and when it asks me to select a Workspace, I do "/Users/Zadam/Documents/workspace" as it recommends. I made some sample files [hopefully] correctly, and have been trying to figure out how to compile and run. I discovered the "Build All" button, but when I click it, I get the following message:

**** Build of configuration Debug for project test2 ****
(Cannot run program "make": Unknown reason)

So that's not awesome. Furthermore, Under the "Problems" tab (by default at the bottom of the UI for me) there is a series of Warnings, all saying the same thing: "Error launching external scanner info generator (g++ -E -...e/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)". The Resource is "Test2" (which is the sample C++ I made), the Location is unknown, and the Type is "C/C++ Problem". I get another warning of the same type, only a slightly different Description: "Error launching external scanner info generator (gcc -E -...pace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c)".

When I follow the path Users/Zadam/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/ and use the "less" command to look at the files contained in it, "specs.c" and "specs.cpp", they appear to be blank. But maybe that's how its supposed to be, or I'm not looking at it right (I'm really a novice when it comes to terminal commands).

---

So when I click "Run" or "Debug" it says "Launch Failed. Binary not found." I'm assuming this means that the project isn't compiling (although a folder labeled "Debug" does appear in the Project Explorer, with files called "makefile", "objects.mk", "sources.mk", and "subdir.mk", so at least it seems to be attempting to compile).

What don't I know? Is the "Build All" the correct button I should be clicking? Am I expected to compile via the terminal or something? I've tried reinstalling Eclipse, and that seemed to have no effect. Any pointers or suggestions are welcome!

Thanks for your help!
Re: Problem with the Build [message #677484 is a reply to message #677283] Wed, 08 June 2011 16:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
It's best to ask about CDT on the CDT forum and to look at the previous
posts there to see if this same problem hasn't been asked about 100
times already...

suriname0 wrote:
> I'm a new user of Eclipse (hope I've gotten the right forum). I
> downloaded the "Eclipse IDE for C/C++ Developers, 86 MB" for my
> MacBook Pro: Mac OS X, Version 10.6.7, hopefully I did that right.
> Eclipse opens successfully, and when it asks me to select a Workspace,
> I do "/Users/Zadam/Documents/workspace" as it recommends. I made some
> sample files [hopefully] correctly, and have been trying to figure out
> how to compile and run. I discovered the "Build All" button, but when
> I click it, I get the following message:
>
> **** Build of configuration Debug for project test2 ****
> (Cannot run program "make": Unknown reason)
>
> So that's not awesome. Furthermore, Under the "Problems" tab (by
> default at the bottom of the UI for me) there is a series of Warnings,
> all saying the same thing: "Error launching external scanner info
> generator (g++ -E
> -...e/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)". The
> Resource is "Test2" (which is the sample C++ I made), the Location is
> unknown, and the Type is "C/C++ Problem". I get another warning of
> the same type, only a slightly different Description: "Error launching
> external scanner info generator (gcc -E
> -...pace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c)".
>
> When I follow the path
> Users/Zadam/Documents/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/
> and use the "less" command to look at the files contained in it,
> "specs.c" and "specs.cpp", they appear to be blank. But maybe that's
> how its supposed to be, or I'm not looking at it right (I'm really a
> novice when it comes to terminal commands).
>
> ---
>
> So when I click "Run" or "Debug" it says "Launch Failed. Binary not
> found." I'm assuming this means that the project isn't compiling
> (although a folder labeled "Debug" does appear in the Project
> Explorer, with files called "makefile", "objects.mk", "sources.mk",
> and "subdir.mk", so at least it seems to be attempting to compile).
> What don't I know? Is the "Build All" the correct button I should be
> clicking? Am I expected to compile via the terminal or something?
> I've tried reinstalling Eclipse, and that seemed to have no effect.
> Any pointers or suggestions are welcome!
>
> Thanks for your help!


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Best way to Install Eclipse with multiple language support.
Next Topic:How to convert from Ant project to maven project?
Goto Forum:
  


Current Time: Tue Apr 23 18:00:10 GMT 2024

Powered by FUDForum. Page generated in 0.08061 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top