This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


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

RE: Fortran executables


You probably want to do ./myprog to run it.  ./program runs a command from
within the current directory.

HTH,

Carl

> -----Original Message-----
> From: Robert Livesey [mailto:robert.livesey@st-hughs.oxford.ac.uk]
> Sent: Thursday, October 25, 2001 12:05 PM
> To: cygwin@cygwin.com
> Subject: Fortran executables
> 
> 
> 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.
> 
> Thanks
> 
> Rob 
> 
> --
> 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/
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

--
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/


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