i'm working on a project programmed in c++, and don't ask why, i have to work on linux.
I've installed eclipse 3.7.2, i assume the latest version up to date.
In my ignorance, i started to work on the project when i realized i couldn't even compile. So i started with a simple hello world to see whats up. Created new project, done, new source file cpp, done, code a hello world, done.
#include <iostream>
using namespace std;
int main() {
cout << "hello world :( ....." << endl;
return 0;
}
This is the code. Yet when i to run it after it's compiled i get this error:
/bin/bash: /media/....../myprojectname: Permission denied
/bin/bash: line 0: exec: /media/....../myprojectname/Debug/myprojectname: cannot execute: Permission denied
I've already made research on this, but I'm not really experienced, more like college knowledge, but all the threads I read about it suggested trying to compile with makefiles (which i know nothing about it, and eclipse is there for it) and even though, that didn't fixed it, for what I read.
I've never had a problem doing this on eclipse for windows, and this is my first try on linux. For what I've also read, it seems it has to do with linux permissions... but then again not my greatest strength.
I guess my question is, how can I code a simple hello world using c++ and using as editor eclipse, and then make the program to just run.
Thanks in advance!
xpermissions? Trychmod +x yourexe. - user703016/mediais owned by root. Also what kind of project did you select? - another.anon.coward