Re: g77 and gfortran together



On Thu, 21 Apr 2005 03:47:03 +0000 (UTC), Steven G. Kargl
<kargl@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> In article <4267156a$0$8120$5a62ac22@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
> Brian Salter-Duke <b_duke@xxxxxxxxxxxxxxxxx> writes:
>> I use g77 all the time for my research code, but I want to play with
>> gfortran. I am currently using Fedora Core 3 with gcc/g77 version 3.4.2.
>> I have rpm's of the Fedora CDs for gcc4 and gfortran.
>>
>> Can I install gfortran and have no conflicts with g77?
>
> Yes, you can install both and no conflict will arise.
> Note, however, that if you compile a library with g77
> you can't link that library with a program compiled by
> gfortran. There is a patch to gfortran to add this
> functionality, but further testing is needed before
> it is added to repository.
>
>> Do I have to also install gcc4? Again if this is named gcc4, are there
>> conflicts?
>
> Yes, you need to install gcc 4.0.0 or mainline. If you
> compile from source, you can do
>
> ./configure --program-suffix=4 --prefix=/usr/somedir --languages=c,f95
>
> to install gcc4 and gfortran4 in somedir, which you can
> add to your path.
>
>> I realise that gcc4 and gfortran are still in development. Should I
>> download the latest versions or would it be OK to play with the ones on
>> the Fedora CD - gfortran 4.0.0-0.8 - for a while and upgrade when it gets
>> more serious?
>
> Go to www.gfortran.org. There are pre-compiled versions that
> are kept up to date, so the latest fixes are available.

Thank you most kindly. This is a very concise and helpfull description
of what I need to do.

Regards, Brian.

--
Brian Salter-Duke Melbourne, Australia
My real address is b_duke(AT)octa4(DOT)net(DOT)au
Use this for reply or followup
.



Relevant Pages

  • Re: g77 or gfortran for Leopard
    ... I'll need to install an Apple Developer Kit for it. ... Both gfortran and g95 are open source Fortran 95 compilers for ... I'd not install g77 today, ... It works fine on Leopard. ...
    (comp.sys.mac.apps)
  • Re: Suspicious Gfortran
    ... It's definitely nothing to do with twin-core cpus (I run g77 on ... not included with gcc4 because that uses different technology, ... If you can find a way to have gcc3 and gcc4 co-exist, then install ...
    (comp.lang.fortran)
  • Re: Suspicious Gfortran
    ... It's definitely nothing to do with twin-core cpus (I run g77 on ... distros that package gcc4 and not gcc3 de facto include gfortran rather ... If you can find a way to have gcc3 and gcc4 co-exist, then install ...
    (comp.lang.fortran)
  • Re: Will current Windows Fortran compilers run on Longhorn?
    ... cygwin is a snap to install (thanks to an excellent online setup program), ... has g77 now, and will presumably have gfortran soon after that gets ...
    (comp.lang.fortran)
  • Re: g77 and gfortran together
    ... > I have rpm's of the Fedora CDs for gcc4 and gfortran. ... > Can I install gfortran and have no conflicts with g77? ... you can install both and no conflict will arise. ...
    (comp.lang.fortran)