C/C++ Eclipse and C++ (Mac): Can we get this working here?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    C++ Eclipse Mac
Click For Summary
The discussion revolves around the installation and setup of Eclipse 3.7.0 (Indigo) on a Mac running Snow Leopard OS for both Java and C++ development. Initially, the user installed the "Java Only" version, which functioned correctly. To support C++, they installed the necessary C/C++ development tools through the Eclipse software update feature. After setting up a simple C++ project named 'HelloWorldProject' and writing a basic "Hello World" program, the user encountered issues during the build process, receiving a message indicating "Nothing to build for project HelloWorldProject" and a subsequent error stating "Launch Failed. Binary Not Found." Ultimately, the user resolved the problem by uninstalling Eclipse and reinstalling it with the C/C++ Development Tooling (CDT) from scratch, which successfully addressed the issues faced.
Saladsamurai
Messages
3,009
Reaction score
7
So I installed Eclipse 3.7.0 (Indigo) for my Mac (Snow Leopard OS). I initially installed the "Java Only" version. That works fine. I then decided I wanted to consolidate to one IDE for both Java and C++ if possible. So, here is what I did:

1) Checked to make sure I have gcc, g++, gdb installed on my machine: I do.

2) Opened Eclipse and went to Help -> Install New Software... ->Work with: Indigo - http://download.eclipse.org/releases/indigo (from the dropdown).

3) I selected from the 'Programming Languages' Dropdown:
C/C++ development tools, C/C++ development tools SDK, CDT Visual C++ Support.

4) I let the stuff install. It seemed to go well.
********

Next I tried to do the simple Hello World Program:

Open Eclipse and then:

1) New -> Project -> C/C++ -> C++ Project

2) Selected 'Empty Project' and named the Project 'HelloWorldProject'

3) Let Eclipse change my perspective to the 'C/C++ Perspective'

4) Right Click HelloWorldProject -> New -> Source File

5) Typed into source file:
Code:
#include <iostream>
using namespace std;

int main() {

	cout << "Hello World" << endl;
	return 0;
	
}

6) With the Editor still activated, press CMD + B in order to Build the Project

In the Console Window in Eclipse I get the message:
Code:
**** Build of configuration Debug for project HelloWorldProject ****

Nothing to build for project HelloWorldProject

Not sure what this means. If I try to run it, I get an error, as expected:

Code:
Launch Failed. Binary Not Found.


I would love to get this going here. Thanks!
 
Technology news on Phys.org
Once, I wrestled similarly with Eclipse.
Finally, my solution was to uninstall Eclipse and install Eclipse with CDT from scratch.
I got that to work.
 
Thanks! This is what I am trying now.
 
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
19K
  • · Replies 49 ·
2
Replies
49
Views
12K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
13K