Click to See Complete Forum and Search --> : need to specify absolute pathnames of compiled C code


Bob54325
06-07-2001, 01:24 PM
I compiled a simple "Hello World" program. It doesn't do a thing when I use a relative pathname but works fine with an absolute pathname.

:( If anyone knows what I'm doing wrong (probably everything ;) ) , please tell me.

THANK YOU

pz

TheLinuxDuck
06-07-2001, 03:01 PM
When running a program from a directory that is not in the path, such as the current directory ( or .), you must supply enough of a path that the shell can find the executable. If the binary is in the same directory, try running it as

<STRONG>./binaryname</STRONG>

That should do it for you! (^=