This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: exe file


Torsten Becker wrote:
> 
> Normaly, I should get an exe file! But when I start it, I get only, that it couldn't
> found a file. But it's in the dir.. I guess  somthing ist wrong with my shell. 
> (bash-2.03) Where is the problem? Thanks Torsten

The shell will normally execute executables found in a directory listed
in the PATH environmental variable. So,

$ echo $PATH
/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/opt/gnome/bin:/opt/kde2/bin:/opt/kde/bin:.:/opt/gnome/bin

To execute a binary with, say:

	$ hello

The entry "." (the current working directory) should be listed, as in
the example above. If it is not, then this should tell bash where the
binary is:

	$./hello

-- 
     Rafael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]