Can't run C++ programs!

Confused++'s Avatar
Newbie Member
This problem is very frustrating. For non-Linux users, this may not make sence. When I compile a perfect program (one pre-made)...
g++ foo.cpp

It compiles just fine and everything's happy because I have an a.out file. However, when I try to run the program...
I get an error saying something along the lines of "foo.out: Permission Denied."
When I check the permissions, everything seems okay. The owner is able to run it, write it, and read it; I own it. For extra measure I made the file executable for all users once again.
Do I need a package for the ./ "command"? This happens in Perl, too, but then I just type "perl" and it woks just fine.
Thanks in advance.
domain's Avatar, Join Date: May 2007
Go4Expert Member
I compiled many c++ programs in Fedora ( Linux ) for two years, but I have not see a problem like this ? you should ask in Linux Forums, I think you will get the answer there ..