No input files

This is a discussion on No input files within the Fortran forums in Programming Languages category; Sorry, I am a complete novice but when I try to run gfortran (/usr/ local/bin/gfortran) it says I have no input files on my MacBook and then says I need a different library (7.0.0 when I have 5.0.0 on mine now) for my G3. Does anyone know what is going on? Please help. Thanks...

Go Back   Application Development Forum > Programming Languages > Fortran

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-24-2008, 03:44 AM
flint88@mail.utexas.edu
Guest
 
Default No input files

Sorry, I am a complete novice but when I try to run gfortran (/usr/
local/bin/gfortran) it says I have no input files on my MacBook and
then says I need a different library (7.0.0 when I have 5.0.0 on mine
now) for my G3. Does anyone know what is going on? Please help. Thanks
Reply With Quote
  #2  
Old 08-24-2008, 06:31 AM
Arjan
Guest
 
Default Re: No input files

> Sorry, I am a complete novice but when I try to run gfortran (/usr/
> local/bin/gfortran) it says I have no input files on my MacBook and


This is normal: gfortran is a compiler that makes object code (or even
an executable) for a given input file (or multiple input files). If
you don't give it an input file (your fortran source code) as
parameter on the commandline, then gfortran doen not know which
sourcefile to compile and complains about this. Call:

gfortran test.f90

where test.f90 is the file containing your source code, and the first
problem is solved! Did yuo perhaps just double-click on the gfortran
icon? That will not work. To pass arguements to the compiler you'll
have to call it from a shell.



> then says I need a different library (7.0.0 when I have 5.0.0 on mine
> now) for my G3. Does anyone know what is going on? Please help. Thanks


No idea. Sorry. I use MinGW/MSYS on a Windows box...


Arjan
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:01 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.