I've just written a simple program in C++ in Eclipse on Ubuntu. But when I press Ctrl+B or select the build all button no binary file is build, and so whe开发者_如何学编程n I try to run the project I receive the error message: Launch failed. binary not found.
what should I do?
thanx!
You can compile and run the program in the terminal
Go to the specific directory in the terminal using the cd command and type
g++ <filename>.cpp -o <filename> # This compiles the code
./<filename> # Runs the program in the terminal
You'll have to manually configure the 'run configuration' you use to run the program to find the binary to execute. If there are no compilation errors, it should have created an executable somewhere.
My Binaries were found under Default package instead of the expected "Debug" package. I had to manually modify run configuration (as mentioned by ascanio). I had to change the path of the application that's all.
精彩评论