This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Serban,
> To: address@hidden
> From: "Serban Udrea" <address@hidden>
> Subject: compiling problems with netcdf-3.4
> Organization: .
> Keywords: 200004041821.MAA07934
In the above message, you wrote:
> I couldn't find any solution to the the compiling problems I have
> on my Linux system so I decided to send you (hopefully) all the
> information needed to find out how I could try to solve the problem.
> 
> Regards,
> 
> Serban
> 
> PS. I think that the problem is with the fortran compatibility, i.e.
> with the file cfortran.h. I couldn't find any newer version of this
> file, the ftp site given in cfortran.doc seems to be wrong. I also
> tried to switch of the compilation of the fortran compatibility using
> .configure --without-fortran, but it didn't work.
I noticed in the information you sent that the C macro "f2cFortran"
wasn't defined.  On most Linux systems, this macro must be defined.
Try the following:
    1.  Go to the top-level source directory.
    2.  Perform steps 3 through 5 near the end of the INSTALL file.
    3.  Ensure that the environment variable CPPFLAGS contains the
        string "-Df2cFortran".
    4.  Perform steps 6 through 9 near the end of the INSTALL file.
Please let me know if this helps.
Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>