I'm using Eclipse Indigo CDT with GCC & G++ 4.7 on Ubuntu 12. My project builds seemingly with no errors, but then won't launch. The error given by Eclipse is "Launch failed. Binary not found." I'm not sure what this means or how to fix it.
This is the build console:
**** Build of configuration Debug for project New ****
make all
make: Nothing to be done for `all'.
**** Build Finished ****
What's the problem and what do I need to do? Thanks.
My code in case it's helpful:
#include "stdafx.h"
using namespace std;
#include <iostream>
#include <string>
void encrypt(std::string &iostr, int key) {
key %= 26;
int ch;
for (auto &it : iostr) {
ch = tolower(it);
if (!islower(ch)) {
continue;
}
ch += key;
if (ch > 'z') {
ch -= 26;
}
it = ch;
}
}
int main() {
string source;
int key = 1;
cout
<< "Paste cyphertext and press enter to shift each letter right 1 through the entire alphabet: ";
getline(cin, source);
encrypt(source, key);
cout << source << "";
std::cout << skipws << source << std::endl;
encrypt(source, key);
cout << "" << endl;
std::cout << source << std::endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "" << endl;
encrypt(source, key);
cout << source << endl;
cout << "Press ENTER to exit";
cin.ignore(cin.rdbuf()->in_avail() + 1);
return 0;
}