Jeff, > To: <address@hidden> > From: "Jeff Lundgren" <address@hidden> > Subject: Compile problems with Lahey Fortran for Linux > Organization: UCAR/Unidata The above message contained the following: > I am trying to compile netCDF (in conjunction with installing CMAQ) on a > Linux box. I am using Lahey Fortran 6.1 for Linux. I have Mandrake Linux > 8.1. The build returns errors during the 'make test' command. > > I have the environment varaibles set as follows: > > export FC=/usr/local/lf9561/bin/lf95 > export FFLAGS=-I/usr/local/include > export CPPFLAGS='-Df2cFortran -DNDEBUG' > export CC=/usr/bin/gcc > export CXX=/usr/bin/g++ According to Dirk Slawinski on his web page dealing with building the netCDF package using Lahey Fortran: http://www.per.marine.csiro.au/staff/Dirk.Slawinski/cwr_web/work/netcdfinfo.html#linux the value of the CPPFLAGS environment variable should be export CPPFLAGS='-DpgiFortran -DNDEBUG' rather than export CPPFLAGS='-Df2cFortran -DNDEBUG' Please see the above URL for more information. I suggest trying the following: 1. Go to the top-level source directory. 2. Perform steps 3 through 5 described near the end of the file INSTALL.html. 3. Ensure that CPPFLAGS has the value above. 4. Perform steps 6 through 9 described near the end of the file INSTALL.html. Please let me know if this helps. Regards, Steve Emmerson <http://www.unidata.ucar.edu>