user7586742
user7586742

Reputation:

OS X Eclipse C++ "Program File Does Not Exist"

So I've decided to give Eclipse C++ on OS X a try but a problem I'm unsure of how to solve. I loaded it up, created my project, etc. I typed some test code, to test if everything is going to run correctly:

#include <iostream>

using namespace std;

int main() {

    int a = 30;
    int b = 40;

    int sum = a + b;

    cout << sum << endl;

    return 0;
}

Next, is this when I try to run the code > http://prntscr.com/eai3x9

When I click the "Details" button, same text > http://prntscr.com/eai6ls

I've searched everywhere on how to fix this problem but I can't find anything. Any tips or help would be greatly appreciated.

Upvotes: 1

Views: 2325

Answers (1)

Frank N
Frank N

Reputation: 31

So this is what worked for me:

Eclipse SDL build error: "The program specified in the launch configuration does not exist"

In summary:

  • go to Project > properties
  • run/debug settings > current configuration > click on edit
  • In c/c++ application textbox select "search project" then click on the binary you want to execute for the current project.

Upvotes: 3

Related Questions