This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Fortran executables
- To: Robert Livesey <robert dot livesey at st-hughs dot oxford dot ac dot uk>
- Subject: Re: Fortran executables
- From: Pavel Tsekov <ptsekov at syntrex dot com>
- Date: Thu, 25 Oct 2001 13:08:37 +0200
- CC: cygwin at cygwin dot com
- References: <E15wiJL-0006sY-00@wing6.herald.ox.ac.uk>
:) You dont have your current directory "." set into your PATH
variable - try running the executable like this "./your_executable"
or add current dir in your PATH like this "export PATH=$PATH:."
Robert Livesey wrote:
>
> The problem I'm having is that after I've compiled a fortran program using the command:
> g77 -o myprog myprog.f
>
> The executable it creates does not run from the directory I'm sitting in. The message "Command not found" appears. However if I move myprog to the default /bin directory it does work. I was wondering how I can make my programs work anywhere and not just in the bin folder ? If this is not possible is there a way of creating my own folder like the /bin directory ?
>
> As you can probably tell I'm new to fortran and also unix so any help would be greatly appreciated.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/