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

[netCDF #MKE-784841]: How to specify compliers when running configure



Hi Gina,

It would be good to use the same compiler to build the netCDF libraries as you
use when compiling your model to link, with those libraries, especially if the
model is in Fortran90.

When you build netCDF, if you want something other than the default compilers
found by the configure script, you need to specify these explicitly, as
described here:

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Specifying-the-Environment-for-Building.html

So, for example, to build netcdf libraries with xlc_r and xlf90_r, you need to
run "make distclean" in the source directory, then define the environment
variables CC="xlc_r" and FC="xlf90_r".  The way you specify environment
variables differs depending on what shell you are using, as explained in the
section of the installation guide referred to above.

You should let the configure script generate the makefiles, rather than
modifying any of them manually.

I hope this helps, and sorry for not getting to your earlier question yet,
we've been getting an overwhelming number of support questions lately ...

--Russ



Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: MKE-784841
Department: Support netCDF
Priority: Normal
Status: Closed