User forums > Using Code::Blocks

How to start learning C++ on Code::Blocks on Ubuntu without Permission Denied

(1/1)

drozofilos:
I am starting to learn C++ from a tutorial on Code::Blocks on Ubuntu. When I try to run a program, I get "Permission Denied". What should I do?

BlueHazzard:
there is not much information to help you from your post...

What are the exact steps you make to get the error. Describe in small steps like:
1) Opening Codeblocks
2) Loading a project from /home/user/....
3) Hitting build button
4) In the error log there are this errors/warnings: Follow the direction here if there are errors/warnings: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
5) All compiles fine
6) If i hit run i get this error message within a dialoge window...

ecc...

drozofilos:
I created a new project by clicking on "Create a new project", choosing Files and C/C++ source
I copy-pasted the following program:

int a, b, sum;

cin >> a;
cin >> b;

sum = a + b;
cout << sum << endl;

I clicked on Run and received
sh: 1: path/to/the/file: Permission denied

Process returned 126 (0x7E)    execution time : 0.002 s
Press ENTER to continue.

Navigation

[0] Message Index

Go to full version