1
votes

I'm running eclipse on SUSE with gcc compiler installed.

When I create new "Hello World" C++ project, clean and build and run I'm faced with "Launch Failed: Binary Not Found".

I try to set a run configuration only to find no binary has been created, no binary folder has been created in project.

Only message from build is :

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

Binary Parser is set to Elf.

Tried everything on SO with no success. Only thing I can think of is binary file is being created elsewhere....but no idea where it could be.

Help much appreciated.

2
Clearly you don't seem to have make installed. Did you check it is? - Sami Kuhmonen
I don't understand? Surely by building the executable is created? Is this what you mean? - notAChance
The error message says the command make is not found. Do you have it installed? - Sami Kuhmonen
It doesn't say make is not found. It says make cannot be run. This is possibly because make cannot be found, but the error message is pretty explicit that it doesn't know why make won't run. This question cannot be answered without more info. First: open up a console and type make. Does make run? If not check if it's installed with zypper in make. This will install make if it is missing. After that rerun make. If make runs, try to build with Eclipse again . - user4581301
Recommend taking a browse through the C/C++ development pattern. Some other good stuff in there. If they didn't come with GCC, make sure you install GDB and Valgrind. They can make your life so much easier it's ridiculous. - user4581301

2 Answers

0
votes

I have faced this issue before due to incorrect installation of C++ compiler
use this command in the terminal

zypper in gcc

and then try again , I actually had this so I Finally Switched to Visual Studio community 2015 it works fine for me

I hope this helps you

adding a link below
http://www.linuxquestions.org/questions/linux-software-2/installing-gcc-on-suse-enterprise-11-a-903014/

0
votes

Try to reinstall the g++(gcc) compiler

→if you're using arch linux:

    sudo pacman -S gcc

→if you're using Debian based distributions (like Ubuntu, Mint...)

    sudo apt-get install gcc

or

    sudo aptitude install gcc

→if you're using OpenSUSE

    sudo zypper install gcc

I forget how to install on fedora(22+)/RedHat ...

→From source Gcc Wiki

After installing, create a "helloworld.cpp" file, then manually compile it, for test, open a terminal on the same directory of this file, then type:

    g++ helloworld.cpp -o executable

And run it:

    ./executable

If compiling manually works, and eclipse compiling don't, try to install Make (use "make" instead of "gcc" on commands)

The helloworld.cpp file, can have the following code:

#include<iostream>

 int main()
 {
    std::cout<<"Hello World!"<< std::endl;
    return 0;
 }