Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Unix (http://www.go4expert.com/forums/unix-forum/)
-   -   C++ run error... (http://www.go4expert.com/forums/cpp-run-error-t4417/)

Confused++ 25May2007 00:37

C++ run error...
 
I know I'm posting this forum twice, but I lost my original post and I didn't know there was a "Linux" forum.
When I compile my program by typing...
Code:

g++ foo.cpp
...it compiles just fine and a little happy a.out file pops up. However, when I try to run the program...
Code:

./a.out
I get an error message along the lines of...
Code:

a.out: Permission denied
I checked the permissions. They're normal: I can read, write, and execute; everyone else can read and execute; etc...
I have the same problem with Perl programs as well, but I found that when I type...
Code:

perl foo.pl
...that seems to fix the problem. I'm just concerned about C++. Do I need a package that may be corrupted? Thanks in advance.

shabbir 25May2007 09:55

Re: C++ run error...
 
You have posted it as an Article and so it went to Editorial review and your posts is moved into the forums. Duplicate of Can't run C++ programs!. Thread closed.


All times are GMT +5.5. The time now is 18:09.