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

[netCDF #MMW-668392]: error with fPIC in numerical model

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 #MMW-668392]: error with fPIC in numerical model
  • Date: Tue, 20 Nov 2018 17:07:24 -0700

Hello,

It appears that you need to rebuild your libnetcdf static library passing the 
`-fPIC` (position indpendent code) flag to gcc by setting the CFLAGS 
environmental variable.  You could also recompile libnetcdf as a shared library.

I hope this helps!  If you have any additional questions, please don't hesitate 
to ask.

-Ward

> Hello,
> 
> My name is Fernando and I have an error with compile file with gcc and
> gfortran related to FPIC that I don't know how I can solved. Help me please
> 
> The output's error is in txt file
> 
> 


Ticket Details
===================
Ticket ID: MMW-668392
Department: Support netCDF
Priority: Normal
Status: Closed
===================
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.