| Dcoates91 (11) | |
|
Hello, all. So, I'm a novice programmer who recently took to running eclipse for c++ coding on my Unix machine (Ubuntu). I can't seem to get past two errors: 1) 'Launch failed. Binary not found'. 2) 'The program file specified in the launch configuration does not exist'. I haven't found a satisfactory solution for the first, and I have found nothing at all for the second. Does anyone know the solutions for these problems? Or perhaps just what these error messages entail? I don't know too much. Thanks! | |
|
|
|
| Athar (4466) | |
| How did you install Eclipse CDT? | |
|
|
|
| Dcoates91 (11) | |
| apt-get install eclipse-cdt, 64-bit | |
|
|
|
| Athar (4466) | |
| Yeah, that should be fine. It sounds as if your project simply wasn't built correctly (e.g. due to compile errors). | |
|
|
|
| Dcoates91 (11) | |
| What do you mean? Any project for which this is a problem (basically anything beyond helloworld.cpp) builds and runs fine in other IDEs. Argh! | |
|
Last edited on
|
|
| Dcoates91 (11) | |
| Do you have any idea what possible configuration hiccups could explain these errors? | |
|
|
|
| Athar (4466) | |
|
Well, what are the error messages you get when you build the project (if any)? (Build All/Ctrl+B or the hammer symbol) | |
|
|
|
| Dcoates91 (11) | |||||
|
Below is just one example: This code has worked before (in codeblocks and with g++ from command line), but I have also gotten these errors before: Invoking: Cross G++ Compiler g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"conditionals.d" -MT"conditionals.d" -o "conditionals.o" "../conditionals.cpp" ../conditionals.cpp: In function ‘void conditionals()’: ../conditionals.cpp:9:2: error: ‘cout’ was not declared in this scope ../conditionals.cpp:10:3: error: ‘cin’ was not declared in this scope make: *** [conditionals.o] Error 1 **** Build Finished **** -------------------------------------------------------------------------------------------------------------------------------------- separately compiled CODE. This code gives me error #2 ('The program file specified in the launch configuration does not exist'). I wrote it to test this problem. headers.h - void threeNplusOne();threeNplusOne.cpp -
testing.cpp -
| |||||
|
Last edited on
|
|||||
| Athar (4466) | |
| You didn't include <iostream> in threeNplusOne.cpp, so it isn't surprising that it doesn't compile. | |
|
|
|
| Dcoates91 (11) | |
| It doesn't matter. It originally did (I changed it just because I wanted to see how the errors changed), and does now (I changed it back for ya!). Same errors. | |
|
|
|
| Athar (4466) | ||
|
You have errors in "conditionals.cpp", but you posted no such file. Please provide complete information about your code, what you were doing and what happened as a result.
I find that hard to believe. Merely building the project will never attempt to launch it. | ||
|
|
||
| Dcoates91 (11) | |
| The error was had when launched, of course. And uh, this is embarrassing... for some reason there is a stray file from another project in this file, explaining these errors. Actually, it's the originally named 3n+1, but unremoved. I'm going to have to get back to you on this. Thanks a lot for you help. | |
|
Last edited on
|
|
| Dcoates91 (11) | |
| Also, what is the deal with the binaries? How do I get eclipse to make them for me? | |
|
|
|
| Athar (4466) | |
| You get them by building the project. They will be placed in your project's folder. | |
|
|
|