[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20060105: compiling netcdf3.6.0-p1 with gfortran 4.0.2
- Subject: Re: 20060105: compiling netcdf3.6.0-p1 with gfortran 4.0.2
- Date: Fri, 06 Jan 2006 08:43:41 -0700
Unidata Support <address@hidden> writes:
> ------- Forwarded Message
>
>>To: address@hidden
>>From: Heiko Klein <address@hidden>
>>Subject: compiling netcdf3.6.0-p1 with gfortran 4.0.2
>>Organization: Norwegian Meteorological Institute
>>Keywords: 200601051430.k05EUH7s013230 netCDF 3.6.0-p1 gfortran 4.0.2
>
> While the build of netcdf with gfortran 4.0.0 worked without problems, I
> had problems building it with gfortran 4.0.2 . At the end I found out,
> that the netcdf-build-system added automatically -Df2cFortran to the
> compile-flags, though gfortran 4.0.2 doesn't use 2 underscores.
>
> With the following options, I managed to successfully compile netcdf on
> fedora core 3 with gfortran 4.0.2:
> CC=/disk1/local/gcc402/bin/gcc CXX=/disk1/local/gcc402/bin/g++
> LD=/disk1/local/gcc402/bin/gcc F90=/disk1/local/gcc402/bin/gfortran
> FC=/disk1/local/gcc402/bin/gfortran
> CPPFLAGS="-DNDEBUG -DFile_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DpgiFortran"
>
> Best regards,
>
> Heiko
>
>
>
> --
> Dr. Heiko Klein Tel. + 47 22 96 33 44
> Air pollution Section/Research Department Fax. + 47 22 69 63 55
> Norwegian Meteorological Institute http://www.met.no
> P.O. Box 43 Blindern 0313 Oslo NORWAY http://www.emep.int
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web. If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.
>
> ------- End of Forwarded Message
>
>
Thanks!
I didn't know gfortran was still going on. I thought it had merged
into the f95 that is part of gcc-4.0.
But I guess I was wrong!
Thanks for the information. The 3.6.1 beta fixes some of the
awkwardness of setting flags, and the 4.0 release will also handle
this much more cleanly!
Thanks again,
Ed
--
Ed Hartnett -- address@hidden