Results 1 to 3 of 3
Hi, I have installed Mandriva 2005 on my P4 machine. Everything is fine except the fact that when I compile a Fortran 77 program using "g77 -c" command, I cannot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-14-2005 #1Just Joined!
- Join Date
- Jun 2005
- Posts
- 2
bash: cannot execute binary file
Hi, I have installed Mandriva 2005 on my P4 machine. Everything is fine except the fact that when I compile a Fortran 77 program using "g77 -c" command, I cannot run it! It says "cannot execute binary file". I have tried to run it as root or even change the permissions but it still does not work.
I appreciate your help.
Farhad
- 06-14-2005 #2
If the g77 compiler takes the same flags as gcc does (it does) then all you did was create an object file. You need to now do:
To get an executable file "foo".Code:g77 foo.o -o foo
- 06-15-2005 #3Just Joined!
- Join Date
- Jun 2005
- Posts
- 2
Thanks
Thanks so much. It solved the problem.


Reply With Quote
