Click to See Complete Forum and Search --> : problem executing c code


micahhacim
02-26-2001, 03:23 AM
greated a simple c hello world type code, compiled no errors when trying to execute i get a message cannot execute binary.
any idea what to do would be appretiated

berb
02-26-2001, 04:05 AM
you more than likely do not have execute file permission on that file. do this:
chmod u+x foo.out

that should get you up and running!

bdg1983
02-26-2001, 04:08 AM
You also may need ./foo.out if foo.out is not in your $PATH.