Unable to use the -c option
victor marian
vctrmarian@yahoo.com
Mon Oct 22 09:22:00 GMT 2007
I attach here more detailed information. The -o option
does not work either.
Victor
$ ls
copiemaxnum.f copiemaxnum.o maxnum.f maxnumexe.exe
test.f90
vmarian@pc56 ~/fortran/exercitiicurs
$ gfortran -o testexe test.f90
vmarian@pc56 ~/fortran/exercitiicurs
$ ls
copiemaxnum.f copiemaxnum.o maxnum.f maxnumexe.exe
test.f90
vmarian@pc56 ~/fortran/exercitiicurs
$ gfortran -v
Using built-in specs.
Target: i686-pc-cygwin
Configured with: ../gcc-4.1.1-src/gcc-4.1.1/configure
--enable-
Thread model: single
gcc version 4.1.1
vmarian@pc56 ~/fortran/exercitiicurs
$ cat test.f90
program test
write(*,*)'test'
end
vmarian@pc56 ~/fortran/exercitiicurs
$
vmarian@pc56 ~/fortran/exercitiicurs
$ gfortran -o testexe test.f90
vmarian@pc56 ~/fortran/exercitiicurs
$ ls
copiemaxnum.f copiemaxnum.o maxnum.f maxnumexe.exe
test.f90
--- Steve Kargl <sgk@troutmask.apl.washington.edu>
wrote:
> On Sun, Oct 21, 2007 at 12:03:14PM -0700, victor
> marian wrote:
> >
> > I run gfortran under cygwin and I am trying to use
> the
> > -c option, but it doesn't work.
> > For example:
> > gfortran -c test.f90
> > doesn't return any result (it should return
> test.o).
> > What should I do?
>
> You should consider actually providing sufficient
> information that would permit someone to provide
> some help. Missing in your report is
> 1) version info for gfortran.
> 2) contents of test.f90 (hint test.o may not be
> produced for an invalid program).
> 3) was there any output to the console?
>
> --
> Steve
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Gcc-help
mailing list