Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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

[netCDF #AUD-213411]: bug fix for netcdf under gcc-4.3



> Hi,
> I was compiling the netcdf-3.6.2 libraries under gcc-4.3 and
> gfortran-4.3 on my mac, and found that the following include was
> missing:
>
> #include <cstring>
>
> which I added right after
>
> #include <string>
>
> in cxx/ncvalues.cpp
>
> Before adding it, I was getting an error:
>
> "error: 'strncpy' was not declared in this scope"
>
> But I found this fix here:
>
> http://gcc.gnu.org/gcc-4.3/porting_to.html
>
> Cheers,
> -Baylor Fox-Kemper, CU-Boulder CIRES/ATOC
>
>

Howdy!

Thanks for sending this. This fix has already been incorporated into the netcdf
codebase. If you want to try it out, get the daily snapshot, or one of the
recently released betas, all available on the netCDF homepage.

This change will be part of the 3.6.3 and 4.0 releases.

Thanks!

Ed

Ticket Details
===================
Ticket ID: AUD-213411
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690