Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   Can't run C++ programs! (http://www.go4expert.com/forums/run-cpp-programs-t4416/)

Confused++ 25May2007 00:24

Can't run C++ programs!
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 foo.pl" and it woks just fine.
Thanks in advance.

domain 4Jun2007 19:00

Re: Can't run C++ programs!
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 ..

All times are GMT +5.5. The time now is 00:34.