Re: Unable to use the -c option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux