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

[netCDF #OMF-580812]: how to compile netcdf with "fPIC" options?

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.


  • Subject: [netCDF #OMF-580812]: how to compile netcdf with "fPIC" options?
  • Date: Fri, 12 Jan 2007 16:01:09 -0700

Hi,

Sorry this reply has taken so long.

If you have are using g77, try:

export CPPFLAGS=-Df2cFortran

or (for csh fans):

setenv CPPFLAGS -Df2cFortran

If you have are a Portland Group or Intel compiler, try:

export CPPFLAGS=-DpgiFortran

or (for csh fans):

setenv CPPFLAGS -DpgiFortran

If you have another type of compiler, try one of the two above choices. 
(pgiFortran seems to work more often than f2cFortran.)

Then cd to the netcdf build directory (the src subdirectory for release 3.6.1). 
Execute the following:

make distclean && ./configure && make test

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



Ticket Details
===================
Ticket ID: OMF-580812
Department: Support netCDF
Priority: Urgent
Status: Closed