||Learning the Mac OS X Terminal: Part 1|
|Subject:||behavior of cc in OS X terminal window|
Response to: behavior of cc in OS X terminal window
To run a.out (or any other executable loacted in the same folder) you must write either ./a.out, ("." referes to the current directory) or you will have to add (or create) a "." to your PATH variable in ~/.tshrc, ~/.cshrc ... (~ = home dir, see do man on tcsh, csh ...).
The PATH variable includes all directory paths the will be used to look for a executable called a.out if you do "% a.out" but the "." directory isn't included by default.